summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/apimagic/apimagic.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/apimagic/apimagic.h b/include/apimagic/apimagic.h
index 7d17211..500463c 100644
--- a/include/apimagic/apimagic.h
+++ b/include/apimagic/apimagic.h
@@ -65,10 +65,22 @@ struct amgc_driver_ctx {
int nerrors;
};
+struct amgc_unit_meta {
+ int ndefines;
+ int nenums;
+ int nenumvals;
+ int ntypedefs;
+ int nstructs;
+ int nunions;
+ int nfunctions;
+ int ngenerated;
+};
+
struct amgc_unit_ctx {
const char * const * path;
const struct amgc_input * map;
const struct amgc_common_ctx * cctx;
+ const struct amgc_unit_meta * meta;
const struct compilation_unit_t*ccunit;
void * any;
int status;
@@ -91,6 +103,9 @@ amgc_api int amgc_lang_std_from_string (const char * std);
/* utility api */
+/* low-level api */
+amgc_api int amgc_init_unit_meta (const struct amgc_unit_ctx *, struct amgc_unit_meta *);
+
#ifdef __cplusplus
}
#endif