+/* Output argument typemap for message_iterator (always appends) */
+%typemap(in, numinputs=0)
+ (bt_self_component_port_input_message_iterator **)
+ (bt_self_component_port_input_message_iterator *temp_msg_iter = NULL) {
+ $1 = &temp_msg_iter;
+}
+
+%typemap(argout)
+ (bt_self_component_port_input_message_iterator **) {
+ if (*$1) {
+ /* SWIG_Python_AppendOutput() steals the created object */
+ $result = SWIG_Python_AppendOutput($result,
+ SWIG_NewPointerObj(SWIG_as_voidptr(*$1),
+ SWIGTYPE_p_bt_self_component_port_input_message_iterator, 0));
+ } else {
+ /* SWIG_Python_AppendOutput() steals Py_None */
+ Py_INCREF(Py_None);
+ $result = SWIG_Python_AppendOutput($result, Py_None);
+ }
+}
+