From 2d0181e9e07236ea28fb638c4a9eafb5896635b6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 1 Dec 2014 13:27:13 +0100 Subject: mds-kbdc: add some test cases + fix issued with inclusion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/raw-data.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mds-kbdc/raw-data.h') diff --git a/src/mds-kbdc/raw-data.h b/src/mds-kbdc/raw-data.h index a2f1edc..95163db 100644 --- a/src/mds-kbdc/raw-data.h +++ b/src/mds-kbdc/raw-data.h @@ -55,6 +55,12 @@ typedef struct mds_kbdc_source_code */ size_t line_count; + /** + * The number of duplicates there are of this + * structure that shared the memory + */ + size_t duplicates; + } mds_kbdc_source_code_t; @@ -79,6 +85,14 @@ void mds_kbdc_source_code_destroy(mds_kbdc_source_code_t* restrict this); */ void mds_kbdc_source_code_free(mds_kbdc_source_code_t* restrict this); +/** + * Create a duplicate of a `mds_kbdc_source_code_t*` + * + * @param this The `mds_kbdc_source_code_t*` + * @return `this` is returned + */ +mds_kbdc_source_code_t* mds_kbdc_source_code_dup(mds_kbdc_source_code_t* restrict this); + /** * Find the end of a function call -- cgit v1.2.3-70-g09d2