projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: strictly type function return status enumerations
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
native_bt.i
diff --git
a/src/bindings/python/bt2/bt2/native_bt.i
b/src/bindings/python/bt2/bt2/native_bt.i
index 293189d619c3c0ff34daba2c096a4b1163cff55f..f9fb451218a53166fe91d97a8ef5361b909f78af 100644
(file)
--- a/
src/bindings/python/bt2/bt2/native_bt.i
+++ b/
src/bindings/python/bt2/bt2/native_bt.i
@@
-33,7
+33,15
@@
#include "logging.h"
#include <babeltrace2/babeltrace.h>
#include "logging.h"
#include <babeltrace2/babeltrace.h>
-#include <babeltrace2/property.h>
+
+/*
+ * This is not part of the API, but because those bindings reside within
+ * the project, we take the liberty to use them.
+ */
+#define __BT_FUNC_STATUS_ENABLE
+#include <babeltrace2/func-status.h>
+#undef __BT_FUNC_STATUS_ENABLE
+
#include "common/assert.h"
#include "py-common/py-common.h"
#include "common/assert.h"
#include "py-common/py-common.h"
@@
-172,8
+180,13
@@
typedef int bt_bool;
$result = $1;
}
$result = $1;
}
+/* Property enumeration */
%include <babeltrace2/property.h>
%include <babeltrace2/property.h>
+/* Common function status codes */
+#define __BT_FUNC_STATUS_ENABLE
+%include <babeltrace2/func-status.h>
+
/* Per-module interface files */
%include "native_bt_clock_class.i"
%include "native_bt_clock_snapshot.i"
/* Per-module interface files */
%include "native_bt_clock_class.i"
%include "native_bt_clock_snapshot.i"
This page took
0.025202 seconds
and
4
git commands to generate.