diff options
| author | Michael Albinus | 2020-09-10 18:49:22 +0200 |
|---|---|---|
| committer | Michael Albinus | 2020-09-10 18:49:22 +0200 |
| commit | be5047c0d2a3696f8cbd0e36987ef78ded6df09b (patch) | |
| tree | bd34e941ae20482abce21138437ed46e20cc37c5 /src/dbusbind.c | |
| parent | 70a8d06fe125f66266d66ece2a428c01f1d9b4e1 (diff) | |
| download | emacs-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.c | 9 |
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 | |||
| 1824 | registered, UNAME is the corresponding unique name. In case of | 1824 | registered, UNAME is the corresponding unique name. In case of |
| 1825 | registered methods and properties, UNAME is nil. PATH is the object | 1825 | registered methods and properties, UNAME is nil. PATH is the object |
| 1826 | path of the sending object. All of them can be nil, which means a | 1826 | path of the sending object. All of them can be nil, which means a |
| 1827 | wildcard then. OBJECT is either the handler to be called when a D-Bus | 1827 | wildcard then. |
| 1828 | message, which matches the key criteria, arrives (TYPE `:method' and | 1828 | |
| 1829 | `:signal'), or a list containing the value of the property and its | 1829 | OBJECT is either the handler to be called when a D-Bus message, which |
| 1830 | attributes (TYPE `:property'). | 1830 | matches the key criteria, arrives (TYPE `:method' and `:signal'), or a |
| 1831 | list (ACCESS EMITS-SIGNAL SIGNATURE VALUE) for TYPE `:property'. | ||
| 1831 | 1832 | ||
| 1832 | For entries of type `:signal', there is also a fifth element RULE, | 1833 | For entries of type `:signal', there is also a fifth element RULE, |
| 1833 | which keeps the match string the signal is registered with. | 1834 | which keeps the match string the signal is registered with. |