</parameter>
</parameters>
</function>
+ <function name="foo" c:identifier="gir_test_boxed_struct_init_foo">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="param1" transfer-ownership="none">
+ <type name="gint" c:type="gint"/>
+ </parameter>
+ <parameter name="param2" transfer-ownership="none">
+ <type name="gint" c:type="gint"/>
+ </parameter>
+ <parameter name="result" direction="out" transfer-ownership="full" caller-allocates="1">
+ <type name="GirTest.BoxedStruct" c:type="GirTestBoxedStruct*"/>
+ </parameter>
+ </parameters>
+ </function>
<method name="inv" c:identifier="gir_test_boxed_struct_inv">
<return-value transfer-ownership="full">
<type name="none" c:type="void"/>
</parameter>
</parameters>
</function>
+ <function name="foo" c:identifier="gir_test_struct_init_foo">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="param1" transfer-ownership="none">
+ <type name="gint" c:type="gint"/>
+ </parameter>
+ <parameter name="param2" transfer-ownership="none">
+ <type name="gint" c:type="gint"/>
+ </parameter>
+ <parameter name="result" direction="out" transfer-ownership="full" caller-allocates="1">
+ <type name="GirTest.Struct" c:type="GirTestStruct*"/>
+ </parameter>
+ </parameters>
+ </function>
<method name="inv" c:identifier="gir_test_struct_inv">
<return-value transfer-ownership="full">
<type name="none" c:type="void"/>
public BoxedStruct () {
}
+ public BoxedStruct.foo (int param1, int param2) {
+ field_name = param1;
+ internal_field_name = param2;
+ }
+
public void inv () {
}
}
public Struct () {
}
+ public Struct.foo (int param1, int param2) {
+ field_name = param1;
+ internal_field_name = param2;
+ }
+
public void inv () {
}
}
public int field_name;
public int internal_field_name;
public BoxedStruct ();
+ public BoxedStruct.foo (int param1, int param2);
public void inv ();
}
[CCode (cheader_filename = "girtest.h")]
public int field_name;
public int internal_field_name;
public Struct ();
+ public Struct.foo (int param1, int param2);
public void inv ();
}
[CCode (cheader_filename = "girtest.h")]
public struct BoxedStruct {
public int field_name;
public int internal_field_name;
+ [CCode (cname = "gir_test_boxed_struct_init_foo")]
+ public static GirTest.BoxedStruct foo (int param1, int param2);
+ public static GirTest.BoxedStruct init ();
public void inv ();
}
[CCode (cheader_filename = "girtest.h", has_type_id = false)]
public struct Struct {
public int field_name;
public int internal_field_name;
+ [CCode (cname = "gir_test_struct_init_foo")]
+ public static GirTest.Struct foo (int param1, int param2);
+ public static GirTest.Struct init ();
public void inv ();
}
[CCode (cheader_filename = "girtest.h", cprefix = "GIR_TEST_ENUM_TEST_", type_id = "gir_test_enum_test_get_type ()")]
calculate_common_prefix (ref common_prefix, old_current.get_cname ());
}
} else if (reader.name == "function") {
- skip_element ();
+ parse_method ("function");
} else if (reader.name == "function-macro") {
skip_element ();
} else {
} else if (reader.name == "method") {
parse_method ("method");
} else if (reader.name == "function") {
- skip_element ();
+ parse_method ("function");
} else if (reader.name == "function-macro") {
skip_element ();
} else if (reader.name == "union") {
unref_method = old_current;
}
} else if (reader.name == "function") {
- skip_element ();
+ parse_method ("function");
} else if (reader.name == "function-macro") {
skip_element ();
} else if (reader.name == "union") {
} else if (reader.name == "method") {
parse_method ("method");
} else if (reader.name == "function") {
- skip_element ();
+ parse_method ("function");
} else if (reader.name == "function-macro") {
skip_element ();
} else if (reader.name == "record") {