How to compile a basic D-Bus/glib example?

后端 未结 5 1996
攒了一身酷
攒了一身酷 2021-02-05 07:32

I\'m trying to learn how to use D-Bus with C bindings. I\'ve never used D-Bus before. I\'m following this tutorial, which I assume is the official one (Freedesktop.org). I\'ve r

5条回答
  •  后悔当初
    2021-02-05 07:36

    Note that libdbus-glib is deprecated, unmaintained and should not be used for accessing D-Bus from C: use GDBus instead. libdbus-1 is not recommended either: it is maintained, but is a much lower-level API for using D-Bus, and does not have all the convenience features of GDBus.

    As enthusiasticgeek says, there’s good GDBus documentation available.

    (libdbus-glib and libdbus-1 deliberately not linked to avoid giving them google juice.)

提交回复
热议问题