Update include/babeltrace/babeltrace.h
[babeltrace.git] / lib / babeltrace.c
index b564e79d20151685bcf7d31a73839b08160f7b50..090fc3bc5039b5df52958a54363e8fed33d2a244 100644 (file)
@@ -27,9 +27,8 @@
  */
 
 #include <babeltrace/babeltrace.h>
-#include <babeltrace/context.h>
-#include <babeltrace/ctf-text/types.h>
 #include <stdlib.h>
+#include <stdbool.h>
 
 bool babeltrace_verbose, babeltrace_debug;
 
@@ -41,3 +40,22 @@ void __attribute__((constructor)) init_babeltrace_lib(void)
        if (getenv("BABELTRACE_DEBUG"))
                babeltrace_debug = 1;
 }
+
+int bt_version_get_major(void)
+{
+       return BT_VERSION_MAJOR;
+}
+
+int bt_version_get_minor(void)
+{
+       return BT_VERSION_MINOR;
+}
+
+int bt_version_get_patch(void) {
+       return BT_VERSION_PATCH;
+}
+
+const char *bt_version_get_extra(void)
+{
+       return BT_VERSION_EXTRA;
+}
This page took 0.028631 seconds and 4 git commands to generate.