DBus Example Code
December 11, 2007
I’m trying to learn to use DBus GLib API in C and found it difficult to get good documentation or a tutorial easily. The D-Bus Tutorial will help you write the simplest possible DBus program and then leaves you! Atleast, so I felt. So here’s some code that I wrote to illustrate subscribing to remote signals using DBus. I’m a newbie programmer, so please suggest better code and help me!
You can find the code here: Signals with DBus.
Sorry for the inconvenience of having it as .odt – wordpress doesn’t allow extensions like .txt or .cpp. However the file doesn’t have any formatting and you can just open it with any text editor, or mv it to a .cpp
Entry Filed under: GNU/Linux/FOSS. Tags: D-Bus.
1 Comment Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1.
Arun Chaganty | December 11, 2007 at 6:14 pm
a) Your really jobless to setup a blog
b) Use the pkg-config tool to include the required libs/cflags. Put this line in your gcc command (anywhere)
`pkg-config –cflags –libs dbus-1 dbus-glib-1`