diff options
| author | Michael Albinus | 2011-09-24 13:36:53 +0200 |
|---|---|---|
| committer | Michael Albinus | 2011-09-24 13:36:53 +0200 |
| commit | a3de0cbd6de04250fb1a55d27bb1a1b7e61f31f1 (patch) | |
| tree | c8df28ac4c93d7c67963d16b389104e84b9c6064 /src | |
| parent | 512a289dc6648b489456fa5f514f2bc8dafb4039 (diff) | |
| download | emacs-a3de0cbd6de04250fb1a55d27bb1a1b7e61f31f1.tar.gz emacs-a3de0cbd6de04250fb1a55d27bb1a1b7e61f31f1.zip | |
* dbusbind.c (Fdbus_register_signal): Add match rule to
Vdbus_registered_objects_table. (Bug#9581)
(Fdbus_register_method, Vdbus_registered_objects_table): Fix
docstring.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/dbusbind.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7435254b490..be80149139f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-09-24 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbusbind.c (Fdbus_register_signal): Add match rule to | ||
| 4 | Vdbus_registered_objects_table. (Bug#9581) | ||
| 5 | (Fdbus_register_method, Vdbus_registered_objects_table): Fix | ||
| 6 | docstring. | ||
| 7 | |||
| 1 | 2011-09-24 Jim Meyering <meyering@redhat.com> | 8 | 2011-09-24 Jim Meyering <meyering@redhat.com> |
| 2 | 9 | ||
| 3 | do not ignore write error for any output size | 10 | do not ignore write error for any output size |
diff --git a/src/dbusbind.c b/src/dbusbind.c index 227d4e647e9..14c1621e0ee 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -2145,7 +2145,7 @@ usage: (dbus-register-signal BUS SERVICE PATH INTERFACE SIGNAL HANDLER &rest ARG | |||
| 2145 | 2145 | ||
| 2146 | /* Create a hash table entry. */ | 2146 | /* Create a hash table entry. */ |
| 2147 | key = list3 (bus, interface, signal); | 2147 | key = list3 (bus, interface, signal); |
| 2148 | key1 = list4 (uname, service, path, handler); | 2148 | key1 = list5 (uname, service, path, handler, build_string (rule)); |
| 2149 | value = Fgethash (key, Vdbus_registered_objects_table, Qnil); | 2149 | value = Fgethash (key, Vdbus_registered_objects_table, Qnil); |
| 2150 | 2150 | ||
| 2151 | if (NILP (Fmember (key1, value))) | 2151 | if (NILP (Fmember (key1, value))) |
| @@ -2177,7 +2177,7 @@ When DONT-REGISTER-SERVICE is non-nil, the known name SERVICE is not | |||
| 2177 | registered. This means that other D-Bus clients have no way of | 2177 | registered. This means that other D-Bus clients have no way of |
| 2178 | noticing the newly registered method. When interfaces are constructed | 2178 | noticing the newly registered method. When interfaces are constructed |
| 2179 | incrementally by adding single methods or properties at a time, | 2179 | incrementally by adding single methods or properties at a time, |
| 2180 | DONT-REGISTER-SERVICE can be use to prevent other clients from | 2180 | DONT-REGISTER-SERVICE can be used to prevent other clients from |
| 2181 | discovering the still incomplete interface.*/) | 2181 | discovering the still incomplete interface.*/) |
| 2182 | (Lisp_Object bus, Lisp_Object service, Lisp_Object path, | 2182 | (Lisp_Object bus, Lisp_Object service, Lisp_Object path, |
| 2183 | Lisp_Object interface, Lisp_Object method, Lisp_Object handler, | 2183 | Lisp_Object interface, Lisp_Object method, Lisp_Object handler, |
| @@ -2319,6 +2319,9 @@ be called when a D-Bus message, which matches the key criteria, | |||
| 2319 | arrives (methods and signals), or a cons cell containing the value of | 2319 | arrives (methods and signals), or a cons cell containing the value of |
| 2320 | the property. | 2320 | the property. |
| 2321 | 2321 | ||
| 2322 | For signals, there is also a fifth element RULE, which keeps the match | ||
| 2323 | string the signal is registered with. | ||
| 2324 | |||
| 2322 | In the second case, the key in the hash table is the list (BUS | 2325 | In the second case, the key in the hash table is the list (BUS |
| 2323 | SERIAL). BUS is either a Lisp symbol, `:system' or `:session', or a | 2326 | SERIAL). BUS is either a Lisp symbol, `:system' or `:session', or a |
| 2324 | string denoting the bus address. SERIAL is the serial number of the | 2327 | string denoting the bus address. SERIAL is the serial number of the |