Update include/babeltrace/babeltrace.h
[babeltrace.git] / lib / babeltrace.c
index 0bcfd1d231aed9f4b3ce9dfaab5dac0c71cd87ed..090fc3bc5039b5df52958a54363e8fed33d2a244 100644 (file)
  */
 
 #include <babeltrace/babeltrace.h>
-#include <babeltrace/context.h>
-#include <babeltrace/ctf-text/types.h>
 #include <stdlib.h>
+#include <stdbool.h>
 
-int babeltrace_verbose, babeltrace_debug;
+bool babeltrace_verbose, babeltrace_debug;
 
 static
 void __attribute__((constructor)) init_babeltrace_lib(void)
@@ -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.04028 seconds and 4 git commands to generate.