Sample program for GDbus signals
Asked Answered
V

3

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

Valle answered 12/5, 2016 at 11:36 Comment(0)
L
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. :)

Laudanum answered 31/5, 2017 at 10:13 Comment(2)
Last two links are broken .. could you update them please, if the project still exists ?Began
Updated the linksLaudanum
E
6

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

Expatriate answered 2/6, 2016 at 10:52 Comment(0)
C
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

Cupcake answered 17/8, 2017 at 16:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.