summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-24 19:08:02 -0400
committermidipix <writeonce@midipix.org>2016-04-24 19:29:29 -0400
commit9f24d2dbde9818a5533b51dc329bfe5d018a3ddc (patch)
tree8ca8262c0c856efa8f08553643e0bcb8b627ff0c /include
parentbd9cc9fe11ad37b0364b12ccf4051d2616af39b4 (diff)
downloadslibtool-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.h10
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 **);