Tagged: D-Bus RSS Toggle Comment Threads | Keyboard Shortcuts

  • Akarsh Simha 2:56 pm on April 14, 2008 Permalink
    Tags: D-Bus,   

    DBus for MCabber 

    I desperately wanted this, so I coded it over a night. Comment on this post if you want a tarball.

    Now I can set the mcabber status to the current playing track from mocp using a script. :-D

     
  • Akarsh Simha 5:25 pm on December 11, 2007 Permalink
    Tags: D-Bus   

    DBus Example Code 

    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

     
    • Arun Chaganty 6:14 pm on December 11, 2007 Permalink | Log in to Reply

      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`

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel
Follow

Get every new post delivered to your Inbox.