]> git.eshelyaron.com Git - emacs.git/commit
Add D-Bus monitor
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 26 Sep 2020 09:38:23 +0000 (11:38 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 26 Sep 2020 09:38:23 +0000 (11:38 +0200)
commitc540f3323da96eadf41ccfa4e23ec2a5124343b8
tree6f513dd3abad6c8e8a61bd2cc939bd5cd9a9461f
parentc98c7def046c5f6b1ac50fda46e32545b5e2ba37
Add D-Bus monitor

* lisp/net/dbus.el (dbus-interface-monitoring): New defconst.
(dbus-call-method, dbus-call-method-asynchronously)
(dbus-send-signal, dbus-method-return-internal)
(dbus-method-error-internal, dbus-check-arguments): Accept also
:system-private and :session-private.
(dbus-check-event, dbus-event-path-name)
(dbus-event-interface-name)
(dbus-event-member-name, dbus-property-handler)
(dbus-handle-bus-disconnect): Adapt according to new structure.
(dbus-handle-event): Handle also monitor events.
(dbus-event-destination-name, dbus-event-handler)
(dbus-event-arguments, dbus-register-monitor, dbus-monitor-handler):
New defuns.

* src/dbusbind.c (XD_DBUS_VALIDATE_BUS_ADDRESS, xd_remove_watch)
(Fdbus__init_bus): Accept also :system-private and :session-private.
(xd_read_message_1): Add destination and error_name to
dbus-event.  Handle monitor events.
(syms_of_dbusbind): Declare QCsystem_private, QCsession_private
and QCmonitor.
(dbus-registered-objects-table): Fix docstring.
lisp/net/dbus.el
src/dbusbind.c