aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbusbind.c
diff options
context:
space:
mode:
authorMichael Albinus2020-09-10 18:49:22 +0200
committerMichael Albinus2020-09-10 18:49:22 +0200
commitbe5047c0d2a3696f8cbd0e36987ef78ded6df09b (patch)
treebd34e941ae20482abce21138437ed46e20cc37c5 /src/dbusbind.c
parent70a8d06fe125f66266d66ece2a428c01f1d9b4e1 (diff)
downloademacs-be5047c0d2a3696f8cbd0e36987ef78ded6df09b.tar.gz
emacs-be5047c0d2a3696f8cbd0e36987ef78ded6df09b.zip
Implement D-Bus properties with compound type.
* lisp/net/dbus.el (dbus-set-property): Fix thinko. (dbus-register-property, dbus-property-handler): Support compound properties. * src/dbusbind.c (dbus-registered-objects-table): Fix docstring. * test/lisp/net/dbus-tests.el (dbus--test-interface): Make it different to `dbus--test-service'. (dbus-test05-register-property) (dbus-test05-register-property-several-paths): Adapt tests.
Diffstat (limited to 'src/dbusbind.c')
-rw-r--r--src/dbusbind.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c
index af294afe92c..02af244ac38 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -1824,10 +1824,11 @@ SERVICE PATH OBJECT [RULE]) ...). SERVICE is the service name as
1824registered, UNAME is the corresponding unique name. In case of 1824registered, UNAME is the corresponding unique name. In case of
1825registered methods and properties, UNAME is nil. PATH is the object 1825registered methods and properties, UNAME is nil. PATH is the object
1826path of the sending object. All of them can be nil, which means a 1826path of the sending object. All of them can be nil, which means a
1827wildcard then. OBJECT is either the handler to be called when a D-Bus 1827wildcard then.
1828message, which matches the key criteria, arrives (TYPE `:method' and 1828
1829`:signal'), or a list containing the value of the property and its 1829OBJECT is either the handler to be called when a D-Bus message, which
1830attributes (TYPE `:property'). 1830matches the key criteria, arrives (TYPE `:method' and `:signal'), or a
1831list (ACCESS EMITS-SIGNAL SIGNATURE VALUE) for TYPE `:property'.
1831 1832
1832For entries of type `:signal', there is also a fifth element RULE, 1833For entries of type `:signal', there is also a fifth element RULE,
1833which keeps the match string the signal is registered with. 1834which keeps the match string the signal is registered with.