Signals with more than one parameter

Havoc Pennington hp at redhat.com
Fri May 18 07:45:04 PDT 2007



Steve Kreyer wrote:
> Hi,
> 
> I'm new to DBus. I'm using the glib- binding to develop an "IPC-
> application". I can send signals with one parameter over DBus, but it
> doesn't seem to work with more than one parameter. Is it possible in
> general? 

Should work fine.

> Also I wonder that there isn't any marshal information for a
> particular signal in dbus_glib__object_info, like it is the case for
> methods ...

That's because the marshal info is already in the GObject; see your call 
to g_signal_new(), that is registering the signal and its introspection 
info.

> Maybe you  have some hints on how I can extend the following peace of
> code to send signals with more than 1 parameter?

Did you forget to change g_signal_new() and related places also? There 
are a number of places you would need to change the code.

Havoc



More information about the dbus mailing list