X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt.i;h=c87a5e7280ca3300600878515df709b2a4f200dc;hb=4fa90f321f51af8f5bfc48eee1435e2f41d853b3;hp=c062f34ab8c46ddc00a40c79b32a9c6e24729936;hpb=a0207a9c287619c3e5bcfa38a971e0d3dac444d1;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt.i b/src/bindings/python/bt2/bt2/native_bt.i index c062f34a..c87a5e72 100644 --- a/src/bindings/python/bt2/bt2/native_bt.i +++ b/src/bindings/python/bt2/bt2/native_bt.i @@ -32,9 +32,22 @@ #define BT_LOG_TAG "BT2-PY" #include "logging.h" +/* + * Include before `` because + * `` removes the `__BT_IN_BABELTRACE_H` + * definition. + */ #include -#include + +/* + * This is not part of the API, but because those bindings reside within + * the project, we take the liberty to use them. + */ +#define __BT_IN_BABELTRACE_H +#include + #include "common/assert.h" +#include "py-common/py-common.h" typedef const uint8_t *bt_uuid; %} @@ -171,8 +184,19 @@ typedef int bt_bool; $result = $1; } +/* + * Define `__BT_IN_BABELTRACE_H` to allow specific headers to be + * included. This remains defined as long as we don't include the main + * header, ``. + */ +#define __BT_IN_BABELTRACE_H + +/* Property enumeration */ %include +/* Common function status codes */ +%include + /* Per-module interface files */ %include "native_bt_clock_class.i" %include "native_bt_clock_snapshot.i"