diff options
author | midipix <writeonce@midipix.org> | 2016-04-24 19:08:02 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-24 19:29:29 -0400 |
commit | 9f24d2dbde9818a5533b51dc329bfe5d018a3ddc (patch) | |
tree | 8ca8262c0c856efa8f08553643e0bcb8b627ff0c /include | |
parent | bd9cc9fe11ad37b0364b12ccf4051d2616af39b4 (diff) | |
download | slibtool-9f24d2dbde9818a5533b51dc329bfe5d018a3ddc.tar.bz2 slibtool-9f24d2dbde9818a5533b51dc329bfe5d018a3ddc.tar.xz |
driver: added struct slbt_source_version, slbt_source_version().
Diffstat (limited to 'include')
-rw-r--r-- | include/slibtool/slibtool.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 953ab19..a2529f7 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -87,6 +87,13 @@ enum slbt_warning_level { SLBT_WARNING_LEVEL_NONE, }; +struct slbt_source_version { + int major; + int minor; + int revision; + const char * commit; +}; + struct slbt_input { void * addr; size_t size; @@ -204,6 +211,9 @@ struct slbt_unit_ctx { int nerrors; }; +/* package info */ +slbt_api const struct slbt_source_version * slbt_source_version(void); + /* driver api */ slbt_api int slbt_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct slbt_driver_ctx **); slbt_api int slbt_create_driver_ctx (const struct slbt_common_ctx *, struct slbt_driver_ctx **); |