X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component.i;h=aa3f725213dd21bf0a1e11f61eb2841eb61c11d9;hb=43c59509042845f8d42c3e99ec74d45fa2dc0908;hp=33b3a7f637f6ec28085f118a8d12a2d239c629cb;hpb=d6bb425cb358e7b0db1873209e40a7d3cd7b5905;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_component.i b/src/bindings/python/bt2/bt2/native_bt_component.i index 33b3a7f6..aa3f7252 100644 --- a/src/bindings/python/bt2/bt2/native_bt_component.i +++ b/src/bindings/python/bt2/bt2/native_bt_component.i @@ -77,19 +77,13 @@ * we reflect that here. */ %typemap(argout) void *user_data { - if (PyLong_AsLong($result) == BT_SELF_COMPONENT_STATUS_OK) { + if (PyLong_AsLong($result) == __BT_FUNC_STATUS_OK) { Py_INCREF($1); } } -%include -%include -%include -%include +%include %include -%include -%include -%include /* * This type map relies on the rather common "user_data" name, so don't pollute