* Included config.h in all headers
* Don't define DBUS_API_SUBJECT_TO_CHANGE unless for old D-Bus versions * Use recursive mutex functions if libdbus supports it * Specify the path when adding match rules, otherwise messages wouldn't be forwarded to the right object under some circumstances * Added integration with the glib main loop (configure with --enable-glib) * Added a gtkmm dbus-browser clone to demonstrate glib integration * Fixed a typo in dbusxx-xml2cpp proxy output * Added python usage instructions for the Echo example git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@10948 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
parent
771ca71556
commit
48a1be9f2a
37 changed files with 427 additions and 23 deletions
|
@ -9,3 +9,15 @@ dbus-send --dest=org.freedesktop.DBus.Examples.Echo --type=method_call --print-r
|
|||
dbus-send --dest=org.freedesktop.DBus.Examples.Echo --type=method_call --print-reply /org/freedesktop/DBus/Examples/Echo org.freedesktop.DBus.EchoDemo.Sum array:int32:10,100,250
|
||||
|
||||
dbus-send --dest=org.freedesktop.DBus.Examples.Echo --type=method_call --print-reply /org/freedesktop/DBus/Examples/Echo org.freedesktop.DBus.EchoDemo.Info
|
||||
|
||||
or, using python instead
|
||||
|
||||
$ python
|
||||
import dbus
|
||||
bus = dbus.SessionBus()
|
||||
object = bus.get_object('org.freedesktop.DBus.Examples.Echo','/org/freedesktop/DBus/Examples/Echo')
|
||||
echo = dbus.Interface(object, dbus_interface='org.freedesktop.DBus.EchoDemo')
|
||||
echo.Random()
|
||||
echo.Hello("world")
|
||||
echo.Sum([123, 234, 95, 520])
|
||||
echo.Info()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue