projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update renamed file in gitignore
[babeltrace.git]
/
lib
/
babeltrace.c
diff --git
a/lib/babeltrace.c
b/lib/babeltrace.c
index b564e79d20151685bcf7d31a73839b08160f7b50..1623b6ea7f9fe7458ace5ea48ee396f08d5051da 100644
(file)
--- 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 <mathieu.desnoyers@efficios.com>
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*
* Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
@@
-26,18
+22,25
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#include <babeltrace/babeltrace.h>
-#include <babeltrace/context.h>
-#include <babeltrace/ctf-text/types.h>
+#include <babeltrace/version.h>
+#include <babeltrace/types.h>
#include <stdlib.h>
#include <stdlib.h>
-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;
}
}
This page took
0.023933 seconds
and
4
git commands to generate.