Move library's version API to include/babeltrace/version.h
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 11 May 2017 17:23:19 +0000 (13:23 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:42 +0000 (12:57 -0400)
Let's keep include/babeltrace/babeltrace.h a master header only.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/Makefile.am
include/babeltrace/babeltrace.h
include/babeltrace/version.h [new file with mode: 0644]

index 1238144a9cbbf10b79b0090ecf99cb179561db21..124dce7eee90ba6b878b7bf02806fd6a54e0fdbf 100644 (file)
@@ -3,7 +3,8 @@ babeltraceinclude_HEADERS = \
        babeltrace/babeltrace.h \
        babeltrace/values.h \
        babeltrace/ref.h \
-       babeltrace/logging.h
+       babeltrace/logging.h \
+       babeltrace/version.h
 
 # Legacy API (for CTF writer)
 babeltracectfinclude_HEADERS = \
index f6ba1bcb568aa88ff3ccd3942f20864cb566cfe0..8a52e68add461893ba050737dcc59bf90dcfa644 100644 (file)
@@ -25,9 +25,4 @@
  * SOFTWARE.
  */
 
-extern int bt_version_get_major(void);
-extern int bt_version_get_minor(void);
-extern int bt_version_get_patch(void);
-extern const char *bt_version_get_extra(void);
-
 #endif /* BABELTRACE_BABELTRACE_H */
diff --git a/include/babeltrace/version.h b/include/babeltrace/version.h
new file mode 100644 (file)
index 0000000..20854d5
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef BABELTRACE_VERSION_H
+#define BABELTRACE_VERSION_H
+
+/*
+ * Copyright 2017 - Philippe Proulx <pproulx@efficios.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+extern int bt_version_get_major(void);
+extern int bt_version_get_minor(void);
+extern int bt_version_get_patch(void);
+extern const char *bt_version_get_extra(void);
+
+#endif /* BABELTRACE_VERSION_H */
This page took 0.027829 seconds and 4 git commands to generate.