Dbus c: what bindings (gdbus?) And simple client / server

I would like to use dbus for communication between applications (I actually use localhost socket). I am looking for a very simple (but full / compiled) working example, so googleing around I found that low-level api should not be used, because it is better to use bindings, dbus-glib bindings have some documentation, but also are not because now there is a new gdbus (dbus built into glib) since version 2.26. about gdbus, with the exception of the api http://developer.gnome.org/gio/stable/gdbus-convenience.html I can not find a mini tutorial / minimum working example. Can anyone help me with this? Thanks.

+4
source share
1 answer

Here is a short tutorial that focuses on how to upgrade to GDBus from a low-level dbus-glib. However, there are some good examples that have helped me.

If you use GObject, you can easily place your object in GDBus without using any xml code generation. (see manual above)

+3
source

Source: https://habr.com/ru/post/1381462/


All Articles