X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt.i;h=f9fb451218a53166fe91d97a8ef5361b909f78af;hb=d24d56638469189904fb6ddbb3c725817b3e9417;hp=bde8d806343b8d37656308a8fe2a3124f3aaf6a6;hpb=d6bb425cb358e7b0db1873209e40a7d3cd7b5905;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt.i b/src/bindings/python/bt2/bt2/native_bt.i index bde8d806..f9fb4512 100644 --- a/src/bindings/python/bt2/bt2/native_bt.i +++ b/src/bindings/python/bt2/bt2/native_bt.i @@ -33,8 +33,17 @@ #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" typedef const uint8_t *bt_uuid; %} @@ -122,14 +131,6 @@ typedef int bt_bool; $result = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_long_SS_long((uint64_t) (*$1))); } -/* Output argument typemap for initialized double output parameter (always appends) */ -%typemap(in, numinputs=0) (double *OUT) (double temp) { - $1 = &temp; -} - -%typemap(argout) (double *OUT) { - $result = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*$1))); -} /* Input argument typemap for UUID bytes */ %typemap(in) bt_uuid { @@ -179,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" @@ -195,7 +201,7 @@ typedef int bt_bool; %include "native_bt_graph.i" %include "native_bt_logging.i" %include "native_bt_message.i" -%include "native_bt_notifier.i" +%include "native_bt_message_iterator.i" %include "native_bt_packet.i" %include "native_bt_plugin.i" %include "native_bt_port.i"