diff options
| author | Michael Albinus | 2012-04-22 16:11:43 +0200 |
|---|---|---|
| committer | Michael Albinus | 2012-04-22 16:11:43 +0200 |
| commit | dcbf5805ac7ade7fc83f3d209e2d56f029918402 (patch) | |
| tree | ca2d664f76032c4cd39d798ae659e23a30f0b4f8 /src/ChangeLog | |
| parent | cf20dee0248049a925275f54381cf63bb2017e35 (diff) | |
| download | emacs-dcbf5805ac7ade7fc83f3d209e2d56f029918402.tar.gz emacs-dcbf5805ac7ade7fc83f3d209e2d56f029918402.zip | |
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.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a1220aeaa7d..205728f91da 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,48 @@ | |||
| 1 | 2012-04-22 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | Move functions from C to Lisp. Make non-blocking method calls | ||
| 4 | the default. Implement further D-Bus standard interfaces. | ||
| 5 | |||
| 6 | * dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare. | ||
| 7 | (QCdbus_request_name_allow_replacement) | ||
| 8 | (QCdbus_request_name_replace_existing) | ||
| 9 | (QCdbus_request_name_do_not_queue) | ||
| 10 | (QCdbus_request_name_reply_primary_owner) | ||
| 11 | (QCdbus_request_name_reply_in_queue) | ||
| 12 | (QCdbus_request_name_reply_exists) | ||
| 13 | (QCdbus_request_name_reply_already_owner): Move to dbus.el. | ||
| 14 | (QCdbus_registered_serial, QCdbus_registered_method) | ||
| 15 | (QCdbus_registered_signal): New Lisp objects. | ||
| 16 | (XD_DEBUG_MESSAGE): Use sizeof. | ||
| 17 | (XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING) | ||
| 18 | (XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT) | ||
| 19 | (XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH) | ||
| 20 | (XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros. | ||
| 21 | (XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL. | ||
| 22 | (xd_signature, xd_append_arg): Allow float for integer types. | ||
| 23 | (xd_get_connection_references): New function. | ||
| 24 | (xd_get_connection_address): Rename from xd_initialize. Return | ||
| 25 | cached address. | ||
| 26 | (xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS. | ||
| 27 | (xd_close_bus): Rename from Fdbus_close_bus. Not needed on Lisp | ||
| 28 | level. | ||
| 29 | (Fdbus_init_bus): New optional arg PRIVATE. Cache address. | ||
| 30 | Return number of recounts. | ||
| 31 | (Fdbus_get_unique_name): Make stronger parameter check. | ||
| 32 | (Fdbus_message_internal): New defun. | ||
| 33 | (Fdbus_call_method, Fdbus_call_method_asynchronously) | ||
| 34 | (Fdbus_method_return_internal, Fdbus_method_error_internal) | ||
| 35 | (Fdbus_send_signal, Fdbus_register_service) | ||
| 36 | (Fdbus_register_signal, Fdbus_register_method): Move to dbus.el. | ||
| 37 | (xd_read_message_1): Obey new structure of Vdbus_registered_objects. | ||
| 38 | (xd_read_queued_messages): Obey new structure of Vdbus_registered_buses. | ||
| 39 | (Vdbus_compiled_version, Vdbus_runtime_version) | ||
| 40 | (Vdbus_message_type_invalid, Vdbus_message_type_method_call) | ||
| 41 | (Vdbus_message_type_method_return, Vdbus_message_type_error) | ||
| 42 | (Vdbus_message_type_signal): New defvars. | ||
| 43 | (Vdbus_registered_buses, Vdbus_registered_objects_table): Adapt | ||
| 44 | docstring. | ||
| 45 | |||
| 1 | 2012-04-22 Paul Eggert <eggert@cs.ucla.edu> | 46 | 2012-04-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 47 | ||
| 3 | Fix GC_MALLOC_CHECK debugging output on 64-bit hosts. | 48 | Fix GC_MALLOC_CHECK debugging output on 64-bit hosts. |