X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_field_class.i;h=674d6938d84373a5db2c0579418c81ab4f4a3741;hb=45c51519900e100d9acda4acb9516ef69bc2d045;hp=e5ed2a89c379f713c7bcf2fc28edbb4ef82e9c4d;hpb=19bb8b5a08e1ee2aadd42bf11f7ed8a62f36bd5b;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_field_class.i b/src/bindings/python/bt2/bt2/native_bt_field_class.i index e5ed2a89..674d6938 100644 --- a/src/bindings/python/bt2/bt2/native_bt_field_class.i +++ b/src/bindings/python/bt2/bt2/native_bt_field_class.i @@ -45,47 +45,5 @@ } } -/* Output argument typemap for value output (always appends) */ -%typemap(in, numinputs=0) - (const bt_field_class_signed_enumeration_mapping_ranges **) - (bt_field_class_signed_enumeration_mapping_ranges *temp_value = NULL) { - $1 = &temp_value; -} - -%typemap(argout) - (const bt_field_class_signed_enumeration_mapping_ranges **) { - if (*$1) { - /* SWIG_Python_AppendOutput() steals the created object */ - $result = SWIG_Python_AppendOutput($result, - SWIG_NewPointerObj(SWIG_as_voidptr(*$1), - SWIGTYPE_p_bt_field_class_signed_enumeration_mapping_ranges, 0)); - } else { - /* SWIG_Python_AppendOutput() steals Py_None */ - Py_INCREF(Py_None); - $result = SWIG_Python_AppendOutput($result, Py_None); - } -} - -/* Output argument typemap for value output (always appends) */ -%typemap(in, numinputs=0) - (const bt_field_class_unsigned_enumeration_mapping_ranges **) - (bt_field_class_unsigned_enumeration_mapping_ranges *temp_value = NULL) { - $1 = &temp_value; -} - -%typemap(argout) - (const bt_field_class_unsigned_enumeration_mapping_ranges **) { - if (*$1) { - /* SWIG_Python_AppendOutput() steals the created object */ - $result = SWIG_Python_AppendOutput($result, - SWIG_NewPointerObj(SWIG_as_voidptr(*$1), - SWIGTYPE_p_bt_field_class_unsigned_enumeration_mapping_ranges, 0)); - } else { - /* SWIG_Python_AppendOutput() steals Py_None */ - Py_INCREF(Py_None); - $result = SWIG_Python_AppendOutput($result, Py_None); - } -} - %include %include