X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fbabeltrace.c;h=ab2b6bc8d2c82af3eb7d6623813c4c1fcc34aacf;hb=35f085940132f27dafc1b10964d33c95a6f5cb62;hp=0bcfd1d231aed9f4b3ce9dfaab5dac0c71cd87ed;hpb=c462e188f3e7819c7bc74f671038cdbf36e8c3c0;p=babeltrace.git diff --git a/lib/babeltrace.c b/lib/babeltrace.c index 0bcfd1d2..ab2b6bc8 100644 --- a/lib/babeltrace.c +++ b/lib/babeltrace.c @@ -27,17 +27,24 @@ */ #include -#include -#include +#include #include -int babeltrace_verbose, babeltrace_debug; +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; +} -static -void __attribute__((constructor)) init_babeltrace_lib(void) +const char *bt_version_get_extra(void) { - if (getenv("BABELTRACE_VERBOSE")) - babeltrace_verbose = 1; - if (getenv("BABELTRACE_DEBUG")) - babeltrace_debug = 1; + return BT_VERSION_EXTRA; }