X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt.i;h=f9fb451218a53166fe91d97a8ef5361b909f78af;hp=293189d619c3c0ff34daba2c096a4b1163cff55f;hb=d24d56638469189904fb6ddbb3c725817b3e9417;hpb=15caa1ca4fac30bd196602bd136e48fda3892de2 diff --git a/src/bindings/python/bt2/bt2/native_bt.i b/src/bindings/python/bt2/bt2/native_bt.i index 293189d6..f9fb4512 100644 --- 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 -#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_FUNC_STATUS_ENABLE +#include +#undef __BT_FUNC_STATUS_ENABLE + #include "common/assert.h" #include "py-common/py-common.h" @@ -172,8 +180,13 @@ typedef int bt_bool; $result = $1; } +/* Property enumeration */ %include +/* Common function status codes */ +#define __BT_FUNC_STATUS_ENABLE +%include + /* Per-module interface files */ %include "native_bt_clock_class.i" %include "native_bt_clock_snapshot.i"