summaryrefslogtreecommitdiff
path: root/lisp/net/dbus.el
Commit message (Collapse)AuthorAgeFilesLines
* * net/dbus.el (dbus-send-signal): Declare function.Juanma Barranquero2010-07-041-0/+1
|
* * net/dbus.el: Implement signal "PropertiesChanged" (from D-Bus 1.3.1).Michael Albinus2010-07-041-13/+44
| | | | | (dbus-register-property): New optional argument EMITS-SIGNAL. (dbus-property-handler): Send signal "PropertiesChanged" if requested.
* * net/dbus.el: Fix typos and declare function.Juanma Barranquero2010-06-051-10/+9
|
* * net/dbus.el (dbus-introspect, dbus-get-property)Michael Albinus2010-02-281-4/+10
| | | | | (dbus-set-property, dbus-get-all-properties): Use `dbus-call-method' when noninteractive. (Bug#5645)
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * net/dbus.el (dbus-property-handler): Filter lambda forms outMichael Albinus2009-12-121-1/+1
| | | | when responding to "GetAll" properties.
* * net/dbus.el (dbus-unregister-service): New defun.Michael Albinus2009-11-161-9/+22
| | | | | | (dbus-register-property): Register the handlers for "org.freedesktop.DBus.Properties" for SERVICE. (dbus-property-handler): Fix docstring.
* * net/dbus.el (dbus-registered-objects-table): Renamed fromMichael Albinus2009-11-131-73/+160
| | | | | | | | | `dbus-registered-functions-table', because it contains also properties. (dbus-unregister-object): Unregister also properties. (dbus-get-property, dbus-set-property, dbus-get-all-properties): Use a timeout of 500 msec, in order to not block. (dbus-register-property, dbus-property-handler): New defuns.
* *** empty log message ***Michael Albinus2009-11-091-2/+2
|
* * net/dbus.el (dbus-unregister-object): Release service, if noMichael Albinus2009-11-091-8/+27
| | | | other method is registered for it.
* * net/dbus.el (dbus-ping): Add optional parameter TIMEOUT.Michael Albinus2009-08-251-3/+16
|
* * net/dbus.el (top): Initialize only when `dbusbind' is loaded.Michael Albinus2009-08-211-3/+4
|
* * net/dbus.el (top): Don't check for (getenvMichael Albinus2009-08-201-3/+2
| | | | "DBUS_SESSION_BUS_ADDRESS"). It's done in dbusbind.c now.
* * net/dbus.el (top): Apply `dbus-init-bus' for the :session busMichael Albinus2009-08-191-9/+8
| | | | only if it is running already.
* * net/dbus.el (dbus-init-bus): Declare. Apply it for the :systemMichael Albinus2009-08-181-0/+10
| | | | and :session buses.
* * net/dbus.el (dbus-call-method-non-blocking): Handle the case theMichael Albinus2009-07-271-4/+7
| | | | | | function returns nil. (dbus-handle-event): Handle special return value :ignore. Reported by Jan Moringen <jan.moringen@uni-bielefeld.de>.
* * net/dbus.el (dbus-event-error-hooks): Fix docstring. DescribeMichael Albinus2009-01-281-2/+2
| | | | | second parameter of hook functions. (dbus-handle-event): Apply it.
* * net/dbus.el (dbus-event-error-hooks): New variable.Michael Albinus2009-01-261-0/+6
| | | | (dbus-handle-event): Use it.
* * net/dbus.el (dbus-string-to-byte-array): Handle empty array.Michael Albinus2009-01-031-4/+6
|
* * net/dbus.el (dbus-handle-event): The result of a message callMichael Albinus2008-11-261-1/+2
| | | | can also be an object, which is not a consp.
* * net/dbus.el (dbus-string-to-byte-array)Michael Albinus2008-11-261-1/+50
| | | | | | | | (dbus-byte-array-to-string, dbus-escape-as-identifier) (dbus-unescape-from-identifier): New defuns. (dbus-handle-event): The result of a message call is a list of arguments, which must be expanded when passing to `dbus-method-return-internal'.
* * net/dbus.el (dbus-service-emacs, dbus-path-emacs): New defconst.Michael Albinus2008-10-121-0/+6
|
* * net/dbus.el (dbus-introspect): Use `dbus-call-method-non-blocking'.Michael Albinus2008-08-241-2/+4
|
* * net/dbus.el (dbus-call-method-asynchronously): DeclareMichael Albinus2008-08-041-0/+1
| | | | it with `declare-function'.
* * net/dbus.el (dbus-method-return-internal)Michael Albinus2008-08-041-0/+2
| | | | | (dbus-method-error-internal): Declare them with `declare-function'.
* * net/dbus.el (dbus-check-event, dbus-handle-event): Handle D-BusMichael Albinus2008-08-011-5/+13
| | | | | | error messages. (dbus-set-property): Call `dbus-introspect-get-property' instead of `dbus-get-property'.
* * net/dbus.el (top): Don't register for "NameOwnerChanged".Michael Albinus2008-07-311-41/+124
| | | | | | | | | | | | | | | | | (dbus-message-type-invalid, dbus-message-type-method-call) (dbus-message-type-method-return, dbus-message-type-error) (dbus-message-type-signal): New defconst. (dbus-ignore-errors): Fix `edebug-form-spec' property. (dbus-return-values-table): New defvar. (dbus-call-method-non-blocking-handler, dbus-event-message-type): New defun. (dbus-check-event, dbus-handle-event, dbus-event-serial-number, ): Extend docstring. Adapt implementation according to new `dbus-event' layout. (dbus-event-service-name, dbus-event-path-name) (dbus-event-interface-name, dbus-event-member-name): Adapt implementation according to new `dbus-event' layout. (dbus-set-property): Correct `dbus-introspect-get-attribute' call.
* * net/dbus.el (dbus-interface-properties): New defconst.Michael Albinus2008-07-181-67/+336
| | | | | | | | | | | | | | | | (dbus-introspect): Update docstring. (dbus-introspect-xml, dbus-introspect-get-attribute) (dbus-introspect-get-node-names, dbus-introspect-get-all-nodes) (dbus-introspect-get-interface-names) (dbus-introspect-get-interface, dbus-introspect-get-method-names) (dbus-introspect-get-method, dbus-introspect-get-signal-names) (dbus-introspect-get-signal, dbus-introspect-get-property-names) (dbus-introspect-get-property) (dbus-introspect-get-annotation-names) (dbus-introspect-get-annotation) (dbus-introspect-get-argument-names, dbus-introspect-get-argument) (dbus-introspect-get-signature, dbus-get-property) (dbus-set-property, dbus-get-all-properties): New defuns.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-5/+4
|
* * net/dbus.el: Remove `no-byte-compile' cookie.Michael Albinus2008-02-101-4/+10
| | | | | | | | (dbus-call-method, dbus-register-signal, dbus-debug) (dbus-registered-functions-table): Declare them with `declare-function' or `defvar', respectively. (top): Don't assert any longer. Require 'cl when compiling. Apply `ignore-errors' but `dbus-ignore-errors'.
* * net/dbus.el (dbus-interface-peer): New defconst.Michael Albinus2008-02-061-1/+14
| | | | (dbus-ping): New defun.
* * dbus.el (top): Check (featurep 'dbusbind).Michael Albinus2008-02-031-0/+4
|
* * net/dbus.el (dbus-ignore-errors): New macro.Michael Albinus2008-01-211-78/+107
| | | | | | | (dbus-unregister-object): New defun. Moved from dbusbind.c. (dbus-handle-event, dbus-list-activatable-names, dbus-list-names) (dbus-list-queued-owners, dbus-get-name-owner, dbus-introspect) (dbus-get-signatures): Apply `dbus-ignore-errors'.
* * net/dbus.el (dbus-list-hash-table)Michael Albinus2008-01-041-24/+42
| | | | | | | | | | (dbus-name-owner-changed-handler): Replace "signal" by "member". (dbus-check-event): Add serial number to event. (dbus-handle-event): Apply return message if needed. (dbus-event-serial-number): New defun. (dbus-event-service-name, dbus-event-path-name) (dbus-event-interface-name, dbus-event-member-name): Adapt implementation to serial number.
* * net/dbus.el (dbus-name-owner-changed-handler): UseMagnus Henoch2008-01-031-2/+2
| | | | dbus-unregister-object instead of dbus-unregister-signal.
* * net/dbus.el (dbus-name-owner-changed-handler): Make the functionMichael Albinus2007-12-301-23/+40
| | | | | resistent towards wrong parameters. (dbus-handle-event): Propagate D-Bus errors only in the debug case.
* * net/dbus.el (dbus-name-owner-changed-handler): UseMichael Albinus2007-12-161-12/+8
| | | | | `dbus-unregister-signal' for removing old rules. Obey new structure of `dbus-registered-functions-table'.
* * net/dbus.el (dbus-hash-table=): Remove function. We cannotMichael Albinus2007-12-081-46/+24
| | | | | | | | apply wildcards in a hash table key; there is no usable hash code then. (dbus-registered-functions-table): Use `equal' as test function. (dbus-name-owner-changed-handler): Rewrite due to new hash table structure.
* * net/dbus.el (dbus-hash-table=): Fix for new hash table keyMichael Albinus2007-12-071-42/+96
| | | | | | | | | | | | | structure. (dbus-list-hash-table, dbus-name-owner-changed-handler): New defuns. (dbus-check-event, dbus-handle-event, dbus-event-bus-name) (dbus-event-service-name, dbus-event-path-name) (dbus-event-interface-name, dbus-event-member-name): Fix for new event structure. (dbus-list-activatable-names, dbus-list-names) (dbus-list-queued-owners, dbus-get-name-owner, dbus-introspect): Reorder `dbus-call-method' arguments.
* * net/dbus.el (dbus-hash-table=): Allow nil as wildcard in theMichael Albinus2007-12-051-5/+14
| | | | interface and member fields.
* Add arch taglineMiles Bader2007-12-041-0/+1
|
* * net/dbus.el (dbus-hash-table=): New defun.Michael Albinus2007-12-041-23/+62
| | | | | | | (dbus-hash-table-test) New hash table test function, used in `dbus-registered-functions-table'. (dbus-*-event, dbus-event-*): Rewritten, due to new structure of `dbus-event'.
* * net/dbus.el: New file.Michael Albinus2007-12-021-0/+242