summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/apimagic/apimagic.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/apimagic/apimagic.h b/include/apimagic/apimagic.h
index 4ec322a..6e7e38b 100644
--- a/include/apimagic/apimagic.h
+++ b/include/apimagic/apimagic.h
@@ -61,6 +61,13 @@ enum amgc_output_action {
AMGC_LIST_FUNCTION,
};
+struct amgc_source_version {
+ int major;
+ int minor;
+ int revision;
+ const char * commit;
+};
+
struct amgc_input {
void * addr;
size_t size;
@@ -153,6 +160,9 @@ struct amgc_layout {
int tabwidth;
};
+/* package info */
+amgc_api const struct amgc_source_version * amgc_source_version(void);
+
/* driver api */
amgc_api int amgc_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct amgc_driver_ctx **);
amgc_api int amgc_create_driver_ctx (const struct amgc_common_ctx *, struct amgc_driver_ctx **);