X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fbabeltrace.c;h=35006c7c0e3b95a251edecc0790f9a3a692fd07b;hb=d94d92ac6656fd252a5d7bb4f6c76935ba18e62e;hp=b564e79d20151685bcf7d31a73839b08160f7b50;hpb=8b596b57e1ff348a11b596b85278c17445e06afb;p=babeltrace.git diff --git a/lib/babeltrace.c b/lib/babeltrace.c index b564e79d..35006c7c 100644 --- a/lib/babeltrace.c +++ b/lib/babeltrace.c @@ -1,8 +1,4 @@ /* - * babeltrace.c - * - * Babeltrace Library - * * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation * * Author: Mathieu Desnoyers @@ -27,17 +23,24 @@ */ #include -#include -#include +#include #include -bool 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; }