17

I am new to GDbus programming. I need to implement a simple Dbus send-receive message (Signals) using Dbus Glib. I tried to google some sample programs, but couldn't find.

Can anyone post any such sample program or point me to some sample program tutorial?

Thanks in advance...

Thanks, SB

user6325262
  • 171
  • 1
  • 1
  • 4

3 Answers3

11

I think following these steps could help:

  1. Read the wikipedia article on DBus to get a good understanding of the DBus architecture.
  2. Follow it up with these slides(atleast the first few slides about the architecture). Here is the original GNOME conference video where these slides were used.
  3. Look at a simple hello world program using GDBus here, or for something more detailed, see my example code here. I've got a detailed README explaining the details.

This should help. :)

nilanjanaLodh
  • 303
  • 4
  • 11
6

I've found this tutorial helpful. It starts off explaining DBus in general and continues with showing implementation examples using gdbus.

anorm
  • 2,255
  • 1
  • 19
  • 38
4

I found a book that talks about GDBus, gdbus-code gen, GVariant and all the relevant bits and pieces:
http://maemo.org/maemo_training_material/maemo4.x/html/maemo_Platform_Development_Chinook/

Simple server/client example:
https://github.com/chiehmin/gdbus_test

As outlined above, I would start with the wiki article to understand the concepts:
https://en.wikipedia.org/wiki/D-Bus

Leo Ufimtsev
  • 6,240
  • 5
  • 40
  • 48