]> git.eshelyaron.com Git - emacs.git/commit
Extend dbus.el by error messages, and :write access type
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 4 Sep 2020 13:09:08 +0000 (15:09 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 4 Sep 2020 13:09:08 +0000 (15:09 +0200)
commita418b0a92090624e2c7beea3681f0a179ade837a
tree77d5f7b63fb8a0b6814e3c054271ee475fe08b8b
parent0f793b5658b0a3610c5b5cad5dd8558d5d11ddfe
Extend dbus.el by error messages, and :write access type

* doc/misc/dbus.texi (Receiving Method Calls): Describe how to
produce D-Bus error messages.
(Receiving Method Calls): Support :write access type.

* lisp/net/dbus.el (dbus-error-dbus, dbus-error-failed)
(dbus-error-access-denied, dbus-error-invalid-args)
(dbus-error-property-read-only): New defconsts.
(dbus-method-error-internal): Add arg ERROR-NAME.
(dbus-register-method): Adapt docstring.
(dbus-handle-event): Handle error messages returned from the handler.
(dbus-get-this-registered-property)
(dbus-get-other-registered-property): New defuns.
(dbus-register-property): Support :write access type.
(dbus-property-handler): Submit proper D-Bus error messages.
Handle several paths at the same interface.

* src/dbusbind.c (Fdbus_message_internal): Improve handling of
DBUS_MESSAGE_TYPE_ERROR.
doc/misc/dbus.texi
lisp/net/dbus.el
src/dbusbind.c