continue;
}
+ if (param.variable_type is ObjectType && param.variable_type.data_type.get_full_name () == "GLib.BusName") {
+ // ignore BusName sender parameters
+ continue;
+ }
+
send_dbus_value (param.variable_type, new CCodeIdentifier ("_arguments_builder"), expr, param);
}
}
continue;
}
+ if (param.variable_type is ObjectType && param.variable_type.data_type.get_full_name () == "GLib.BusName") {
+ // ignore BusName sender parameters
+ continue;
+ }
+
var owned_type = param.variable_type.copy ();
owned_type.value_owned = true;
continue;
}
+ if (param.variable_type is ObjectType && param.variable_type.data_type.get_full_name () == "GLib.BusName") {
+ // ignore BusName sender parameters
+ var sender = new CCodeFunctionCall (new CCodeIdentifier ("g_dbus_method_invocation_get_sender"));
+ sender.add_argument (new CCodeIdentifier ("invocation"));
+ ccall.add_argument (sender);
+ continue;
+ }
+
var st = param.variable_type.data_type as Struct;
if (st != null && !st.is_simple_type ()) {
ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier (param.name)));
continue;
}
+ if (param.variable_type is ObjectType && param.variable_type.data_type.get_full_name () == "GLib.BusName") {
+ // ignore BusName sender parameters
+ continue;
+ }
+
var owned_type = param.variable_type.copy ();
owned_type.value_owned = true;
if (param.variable_type is ObjectType && param.variable_type.data_type.get_full_name () == "GLib.Cancellable") {
continue;
}
+ if (param.variable_type is ObjectType && param.variable_type.data_type.get_full_name () == "GLib.BusName") {
+ continue;
+ }
var info = new CCodeInitializerList ();
info.append (new CCodeConstant ("-1"));
[CCode (cname = "g_strdup")]
public ObjectPath (string path);
}
+
+ [CCode (cname = "char", const_cname = "const char", copy_function = "g_strdup", free_function = "g_free", cheader_filename = "stdlib.h,string.h,glib.h", type_id = "G_TYPE_STRING", marshaller_type_name = "STRING", param_spec_function = "g_param_spec_string", get_value_function = "g_value_get_string", set_value_function = "g_value_set_string", take_value_function = "g_value_take_string")]
+ public class BusName : string {
+ [CCode (cname = "g_strdup")]
+ public BusName (string bus_name);
+ }
#endif
[CCode (cname = "G_LIKELY", cheader_filename = "glib.h")]