1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-22 07:51:17 -08:00
emacs/test/lisp/net
Michael Albinus 89209a83b6 Support D-Bus file descriptor manipulation
* doc/misc/dbus.texi (Synchronous Methods): Adapt `dbus-call-method'.
(Asynchronous Methods): Adapt `dbus-call-method-asynchronously'.
(File Descriptors): New chapter, replaces Inhibitor Locks.

* etc/NEWS: Replace "New D-Bus functions to support systemd
inhibitor locks" by "Support D-Bus file descriptor manipulation".
Presentational fixes and improvements.

* lisp/net/dbus.el (dbus-call-method)
(dbus-call-method-asynchronously): Adapt docstring.
(dbus-list-hash-table): Return (nreverse result).
(dbus-monitor-goto-serial): Declare `completion'.

* src/dbusbind.c (Fdbus_message_internal, xd_read_message_1):
Handle `:keep-fd'.
(xd_registered_inhibitor_locks, Fdbus_make_inhibitor_lock)
(Fdbus_close_inhibitor_lock, Fdbus_registered_inhibitor_locks): Delete.
(xd_registered_fds): New variable.
(Fdbus__fd_open, Fdbus__fd_close, Fdbus__registered_fds):
New DEFUNs.  (Bug#79963)
(syms_of_dbusbind_for_pdumper): Initialize `xd_registered_fds'.
(syms_of_dbusbind): Remove subroutines
`Sdbus_make_inhibitor_lock', `Sdbus_close_inhibitor_lock' and
`Sdbus_registered_inhibitor_locks'.  Remove symbol `Qdbus_call_method'.
Declare subroutines `Sdbus__fd_open', `Sdbus__fd_close' and
`Sdbus__registered_fds'.  Declare symbol `QCkeep_fd'.  staticpro
`xd_registered_fds'.

* test/lisp/net/dbus-tests.el (dbus-test10-inhibitor-locks): Delete.
(dbus-test10-keep-fd, dbus-test10-open-close-fd): New tests.
2026-02-07 11:32:54 +01:00
..
dbus-resources Don't call dbus-launch in dbus-tests.el 2025-10-06 18:10:06 +02:00
eudc-resources
mailcap-resources
network-stream-resources
ntlm-resources
puny-resources
shr-resources
tramp-archive-resources Tramp cleanup 2025-10-20 14:42:12 +02:00
tramp-resources Revert "* test/lisp/net/tramp-resources/foo.tar.gz: Remove." 2025-10-20 14:58:38 +02:00
browse-url-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
dbus-tests.el Support D-Bus file descriptor manipulation 2026-02-07 11:32:54 +01:00
dig-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eudc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eww-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
gnutls-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
hmac-md5-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
mailcap-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
network-stream-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
newsticker-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
nsm-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ntlm-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
puny-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rcirc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rfc2104-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sasl-cram-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sasl-scram-rfc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sasl-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
secrets-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
shr-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
socks-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tramp-archive-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tramp-tests.el New Tramp test 2026-01-28 12:43:38 +01:00
webjump-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00