Re: gdbus - register handler/object on interface NULL



Thank you for your response, but your code also uses `node_info->interfaces[0]` as `interface` parameter when registering an object - thus does not solve my problem.

Any other ideas?

Best

Bernhard


2013/8/21 Osmo Antero <osmoma gmail com>
Hello,
I have made a small server for Audio-Recorder. Take a look at dbus-server.[ch] modules.
 
$ audio-recorder --help
can show the commands that can be sent to the server (to set or ask the recording state).

// Osmo (Moma) Antero


On Wed, Aug 21, 2013 at 6:10 PM, Bernhard Schuster <schuster bernhard googlemail com> wrote:
I have to deal with a closed source server being based on qt + dbus.
I try to connect to it via gdbus,glib.
The connection works as follows:

A mehod/object called "message_handler" has to be registered to the bus
/exported.
I call a remote method named "send_data", afterwards the service/server
calls the local "message_handler". Unfortunately it expects the
method/object to be at interface NULL, at least that is what I read from
the dbus-monitor/bustle logs

g_dbus_connection_register_object does not allow a interface NULL pointer.


Any help or pointers are appreciated.


I opened a pretty detailed question on stackoverflow

http://stackoverflow.com/questions/18357703/dbus-register-object-to-remote-on-interface-null

Thanks in advance!

Best

Bernhard
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]