X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fbabeltrace.c;h=2b675eb299d4eb18a7efd5b6853ae70fe97aa43e;hb=c55a9f585da53ea54ac458155fac3cdec1779d47;hp=881e80d605cf9f80d77c242604ab4bd3be66c2d8;hpb=dc3fffef7b84cc4af1a7c99828fd57a106cd2257;p=babeltrace.git diff --git a/lib/babeltrace.c b/lib/babeltrace.c index 881e80d6..2b675eb2 100644 --- a/lib/babeltrace.c +++ b/lib/babeltrace.c @@ -27,16 +27,35 @@ */ #include +#include #include -#include -bool babeltrace_verbose, babeltrace_debug; +bt_bool babeltrace_verbose, babeltrace_debug; static void __attribute__((constructor)) init_babeltrace_lib(void) { if (getenv("BABELTRACE_VERBOSE")) - babeltrace_verbose = 1; + babeltrace_verbose = BT_TRUE; if (getenv("BABELTRACE_DEBUG")) - babeltrace_debug = 1; + babeltrace_debug = BT_TRUE; +} + +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; }