Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5c0b4070
Commit
5c0b4070
authored
Jan 10, 2011
by
Michael Albinus
Browse files
* net/dbus.el (dbus-unregister-service): Complete doc. Fix
call of dbus-error signal.
parent
1a27c64e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
lisp/ChangeLog
lisp/ChangeLog
+3
-1
lisp/net/dbus.el
lisp/net/dbus.el
+13
-2
No files found.
lisp/ChangeLog
View file @
5c0b4070
2011-01-10 Michael Albinus <michael.albinus@gmx.de>
* net/dbus.el (dbus-register-property): Use `dont-register' keyword.
* net/dbus.el (dbus-unregister-service): Complete doc. Fix
call of dbus-error signal.
(dbus-register-property): Use `dont-register' keyword.
2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
...
...
lisp/net/dbus.el
View file @
5c0b4070
...
...
@@ -183,7 +183,18 @@ association to the service from D-Bus."
(
defun
dbus-unregister-service
(
bus
service
)
"Unregister all objects related to SERVICE from D-Bus BUS.
BUS is either a Lisp symbol, `:system' or `:session', or a string
denoting the bus address. SERVICE must be a known service name."
denoting the bus address. SERVICE must be a known service name.
The function returns a keyword, indicating the result of the
operation. One of the following keywords is returned:
`:released': Service has become the primary owner of the name.
`:non-existent': Service name does not exist on this bus.
`:not-owner': We are neither the primary owner nor waiting in the
queue of this service."
(
maphash
(
lambda
(
key
value
)
(
dolist
(
elt
value
)
...
...
@@ -200,7 +211,7 @@ denoting the bus address. SERVICE must be a known service name."
(
1
:released
)
(
2
:non-existent
)
(
3
:not-owner
)
(
t
(
signal
'dbus-error
"Could not unregister service"
)))))
(
t
(
signal
'dbus-error
(
list
"Could not unregister service"
service
)
)))))
(
defun
dbus-call-method-non-blocking-handler
(
&rest
args
)
"Handler for reply messages of asynchronous D-Bus message calls.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment