View file: signals-with-dbus
A program to illustrate handling of D-Bus signals using DBus GLib API (and some low-level DBus methods). Rename .odt as .c and compile with appropriate gcc options.
| Suhas on For IIT aspirants wanting to p… | |
| Suhas on For IIT aspirants wanting to p… | |
| aniket on For IIT aspirants wanting to p… | |
| DG on For IIT aspirants wanting to p… | |
| nishant jain on For IIT aspirants wanting to p… |
View file: signals-with-dbus
A program to illustrate handling of D-Bus signals using DBus GLib API (and some low-level DBus methods). Rename .odt as .c and compile with appropriate gcc options.
Chris Cole,
Akarsh Simha,
Jorge Pereira, and 1 other are discussing. Toggle Comments
You must be logged in to post a comment.
Mauricio 12:34 am on August 15, 2008 Permalink | Log in to Reply
I’m having lot of compilation errors, don’t know where to start, it seems that don’t find anithing like /usr/include/glib-2.0/glib.h:30:26: error: glib/galloca.h: No such file or directory….I add the recomended pkg-config to the compilation command…may be you can help me with that…
Thanks
Mauricio
Jorge Pereira 1:07 am on February 12, 2009 Permalink | Log in to Reply
steps for building
1) wget -O dbus-signal.c https://kstars.files.wordpress.com/2007/12/signal.odt
2) gcc -o dbus-signal dbus-signal.c $(pkg-config –cflags –libs dbus-1 dbus-glib-1)
Akarsh Simha 2:20 pm on February 13, 2009 Permalink | Log in to Reply
Thanks Jorge.
Chris Cole 6:47 am on February 15, 2009 Permalink | Log in to Reply
Hey, what if you want to send the signal to this program from another dbus program…I couldn’t get this to work:
dbus-send –type=signal –session –dest=org.freedesktop.DBus /org/freedesktop/DBus org.DBusTest.SignalTest string:”NameLost”
any ideas?
Chris Cole 6:48 am on February 15, 2009 Permalink | Log in to Reply
subscribe