diff options
author | midipix <writeonce@midipix.org> | 2016-04-25 08:59:10 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-25 08:59:10 -0400 |
commit | f836238670793d801b09c5a5423dc2ffec3dd4a7 (patch) | |
tree | 1818f914cd988e8cb5ad44b96e5e4501339afe56 /include | |
parent | d93e2d84fd3dd90592cc23cd5998ca803726cee9 (diff) | |
download | apimagic-f836238670793d801b09c5a5423dc2ffec3dd4a7.tar.bz2 apimagic-f836238670793d801b09c5a5423dc2ffec3dd4a7.tar.xz |
driver: added struct amgc_source_version, amgc_source_version().
Diffstat (limited to 'include')
-rw-r--r-- | include/apimagic/apimagic.h | 10 |
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 **); |