Fix -Wmissing-prototypes/-Wmissing-declarations warnings
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt.i
index 8146e8ff4299d85ca3cea46dfb7f5b5fc1046654..919fc1dc8988bd9683605704bd4cd84eb0db7fd4 100644 (file)
@@ -139,6 +139,16 @@ typedef uint64_t bt_listener_id;
                        SWIG_From_unsigned_SS_long_SS_long((uint64_t) (*$1)));
 }
 
+/* Output argument typemap for initialized bt_boot output parameter (always appends) */
+%typemap(in, numinputs=0) (bt_bool *) (bt_bool temp) {
+       $1 = &temp;
+}
+
+%typemap(argout) bt_bool * {
+       $result = SWIG_Python_AppendOutput(resultobj,
+                       SWIG_From_bool(*$1));
+}
+
 /* Input argument typemap for UUID bytes */
 %typemap(in) bt_uuid {
        $1 = (unsigned char *) PyBytes_AsString($input);
@@ -233,3 +243,13 @@ void bt_bt2_exit_handler(void);
 %include "native_bt_trace_class.i"
 %include "native_bt_value.i"
 %include "native_bt_version.i"
+
+%{
+
+/*
+ * This function is defined by SWIG.  Declare here to avoid a
+ * -Wmissing-prototypes warning.
+ */
+PyObject *SWIG_init(void);
+
+%}
This page took 0.023473 seconds and 4 git commands to generate.