1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/net
Michael Albinus dcbf5805ac Move functions from C to Lisp. Make non-blocking method calls
the default.  Implement further D-Bus standard interfaces.

* configure.in (dbus_validate_bus_name, dbus_validate_path)
(dbus_validate_interface, dbus_validate_member): Check also for
these library functions

* dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare.
(QCdbus_request_name_allow_replacement)
(QCdbus_request_name_replace_existing)
(QCdbus_request_name_do_not_queue)
(QCdbus_request_name_reply_primary_owner)
(QCdbus_request_name_reply_in_queue)
(QCdbus_request_name_reply_exists)
(QCdbus_request_name_reply_already_owner): Move to dbus.el.
(QCdbus_registered_serial, QCdbus_registered_method)
(QCdbus_registered_signal): New Lisp objects.
(XD_DEBUG_MESSAGE): Use sizeof.
(XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING)
(XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT)
(XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH)
(XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros.
(XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL.
(xd_signature, xd_append_arg): Allow float for integer types.
(xd_get_connection_references): New function.
(xd_get_connection_address): Rename from xd_initialize.  Return
cached address.
(xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS.
(xd_close_bus): Rename from Fdbus_close_bus.  Not needed on Lisp
level.
(Fdbus_init_bus): New optional arg PRIVATE.  Cache address.
Return number of recounts.
(Fdbus_get_unique_name): Make stronger parameter check.
(Fdbus_message_internal): New defun.
(Fdbus_call_method, Fdbus_call_method_asynchronously)
(Fdbus_method_return_internal, Fdbus_method_error_internal)
(Fdbus_send_signal, Fdbus_register_service)
(Fdbus_register_signal, Fdbus_register_method): Move to dbus.el.
(xd_read_message_1): Obey new structure of Vdbus_registered_objects.
(xd_read_queued_messages): Obey new structure of Vdbus_registered_buses.
(Vdbus_compiled_version, Vdbus_runtime_version)
(Vdbus_message_type_invalid, Vdbus_message_type_method_call)
(Vdbus_message_type_method_return, Vdbus_message_type_error)
(Vdbus_message_type_signal): New defvars.
(Vdbus_registered_buses, Vdbus_registered_objects_table): Adapt
docstring.

* net/dbus.el (dbus-message-internal): Declare function.  Remove
unneeded function declarations.
(defvar dbus-message-type-invalid, dbus-message-type-method-call)
(dbus-message-type-method-return, dbus-message-type-error)
(dbus-message-type-signal): Declare variables.  Remove local
definitions.
(dbus-interface-dbus, dbus-interface-peer)
(dbus-interface-introspectable, dbus-interface-properties)
(dbus-path-emacs, dbus-interface-emacs, dbus-return-values-table):
Adapt docstring.
(dbus-interface-objectmanager): New defconst.
(dbus-call-method, dbus-call-method-asynchronously)
(dbus-send-signal, dbus-method-return-internal)
(dbus-method-error-internal, dbus-register-service)
(dbus-register-signal, dbus-register-method): New defuns, moved
from dbusbind.c
(dbus-call-method-handler, dbus-setenv)
(dbus-get-all-managed-objects, dbus-managed-objects-handler): New
defuns.
(dbus-call-method-non-blocking): Make it an obsolete function.
(dbus-unregister-object, dbus-unregister-service)
(dbus-handle-event, dbus-register-property)
(dbus-property-handler): Obey the new structure of
`bus-registered-objects'.
(dbus-introspect): Use `dbus-call-method'.  Use a timeout.
(dbus-get-property, dbus-set-property, dbus-get-all-properties):
Use `dbus-call-method'.

* dbus.texi (Version): New node.
(Properties and Annotations): Mention the object manager
interface.  Describe dbus-get-all-managed-objects.
(Type Conversion): Floating point numbers are allowed, if an
anteger does not fit Emacs's integer range.
(Synchronous Methods): Remove obsolete dbus-call-method-non-blocking.
(Asynchronous Methods): Fix description of
dbus-call-method-asynchronously.
(Receiving Method Calls): Fix some minor errors.  Add
dbus-interface-emacs.
(Signals): Describe unicast signals and the new match rules.
(Alternative Buses): Add the PRIVATE optional argument to
dbus-init-bus.  Describe its new return value.  Add dbus-setenv.
2012-04-22 16:11:43 +02:00
..
.gitignore
ange-ftp.el Tweaks to Customize interface. Set custom-reset-button-menu to t. 2012-04-22 21:58:00 +08:00
browse-url.el Adapt browse-url.el to improvements in Cygwin's cygstart utility. 2012-04-13 11:15:42 -04:00
dbus.el Move functions from C to Lisp. Make non-blocking method calls 2012-04-22 16:11:43 +02:00
dig.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
dns.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudc-bob.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudc-export.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudc-hotlist.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudc-vars.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudc.el Standardize possessive apostrophe usage in manuals, docs, and comments 2012-02-28 00:17:21 -08:00
eudcb-bbdb.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudcb-ldap.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudcb-mab.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
eudcb-ph.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
gnutls.el * net/gnutls.el (gnutls-trustfiles): Fixed Cygwin bundle location. 2012-02-17 08:05:20 -05:00
goto-addr.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
hmac-def.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
hmac-md5.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
imap.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
ldap.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
mairix.el Spelling fixes. 2012-03-12 15:35:55 -07:00
net-utils.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
netrc.el Add missing :version tags to new defgroups and defcustoms 2012-02-11 14:13:29 -08:00
network-stream.el More process-related doc and manual small edits 2012-04-17 20:48:43 -07:00
newst-backend.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
newst-plainview.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
newst-reader.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
newst-ticker.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
newst-treeview.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
newsticker.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
ntlm.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
quickurl.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
rcirc.el * lisp/net/rcirc.el (rcirc): Avoid error when process-contact returns 2012-04-21 22:12:27 +08:00
rcompile.el Fix author comment 2012-02-19 17:55:34 -08:00
rlogin.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
sasl-cram.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
sasl-digest.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
sasl-ntlm.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
sasl.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
secrets.el Standardize possessive apostrophe usage in manuals, docs, and comments 2012-02-28 00:17:21 -08:00
snmp-mode.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
soap-client.el Add missing :version tags to new defgroups and defcustoms 2012-02-11 14:13:29 -08:00
soap-inspect.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
socks.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
telnet.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
tls.el lisp/*: Add declarations, remove unused bindings, mark unused args. 2012-04-19 19:20:26 +02:00
tramp-cache.el * net/tramp.el (tramp-action-login): Set connection property "login-as". 2012-01-22 13:55:36 +01:00
tramp-cmds.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
tramp-compat.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
tramp-ftp.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
tramp-gvfs.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
tramp-gw.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
tramp-sh.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
tramp-smb.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
tramp-uu.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
tramp.el Tweaks to Customize interface. Set custom-reset-button-menu to t. 2012-04-22 21:58:00 +08:00
trampver.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
webjump.el Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
xesam.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
zeroconf.el Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00