Commit 3246337c authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

implement marshalling support support signals with interface parameters

2007-03-21  Jürg Billeter  <j@bitron.ch>

	* vala/valainterface.vala: implement marshalling support
	* vala/valacodegenerator.vala: support signals with interface parameters

svn path=/trunk/; revision=250
parent 6eb70028
2007-03-21 Jürg Billeter <j@bitron.ch>
* vala/valainterface.vala: implement marshalling support
* vala/valacodegenerator.vala: support signals with interface parameters
2007-03-20 Raffaele Sandrini <rasa@gmx.ch>
* vapi/glib-2.0.vala: add extended runtime type support
......
......@@ -1704,7 +1704,7 @@ public class Vala.CodeGenerator : CodeVisitor {
return "gpointer";
} else if (t.data_type == null) {
return "void";
} else if (t.data_type is Class) {
} else if (t.data_type is Class || t.data_type is Interface) {
return "GObject *";
} else if (t.data_type is Struct) {
if (((Struct) t.data_type).is_reference_type ()) {
......
......@@ -270,6 +270,18 @@ public class Vala.Interface : DataType {
this.type_cname = type_cname;
}
public override string get_marshaller_type_name () {
return "OBJECT";
}
public override string get_get_value_function () {
return "g_value_get_object";
}
public override string get_set_value_function () {
return "g_value_set_object";
}
public override string get_type_id () {
if (type_id == null) {
type_id = get_upper_case_cname ("TYPE_");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment