summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-25 09:13:24 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:39 -0500
commit26498daf70041bc96f4dd1817f82d8bee3a30067 (patch)
tree1f3510dceafe46539902613d48e5f59c481ccf3a /include
parent5694f736993d6b328e45f5cae60736b26f00fdce (diff)
downloadmdso-26498daf70041bc96f4dd1817f82d8bee3a30067.tar.bz2
mdso-26498daf70041bc96f4dd1817f82d8bee3a30067.tar.xz
driver: added struct mdso_source_version, mdso_source_version().
Diffstat (limited to 'include')
-rw-r--r--include/mdso/mdso.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h
index 6dea3dc..52a5e21 100644
--- a/include/mdso/mdso.h
+++ b/include/mdso/mdso.h
@@ -39,6 +39,13 @@ extern "C" {
/* unit action flags */
+struct mdso_source_version {
+ int major;
+ int minor;
+ int revision;
+ const char * commit;
+};
+
struct mdso_input {
void * addr;
size_t size;
@@ -74,6 +81,9 @@ struct mdso_unit_ctx {
int nerrors;
};
+/* package info */
+mdso_api const struct mdso_source_version * mdso_source_version(void);
+
/* driver api */
mdso_api int mdso_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct mdso_driver_ctx **);
mdso_api int mdso_create_driver_ctx (const struct mdso_common_ctx *, struct mdso_driver_ctx **);