Systemd/src/libsystemd/sd-bus
Lennart Poettering ae2a15bc14 macro: introduce TAKE_PTR() macro
This macro will read a pointer of any type, return it, and set the
pointer to NULL. This is useful as an explicit concept of passing
ownership of a memory area between pointers.

This takes inspiration from Rust:

https://doc.rust-lang.org/std/option/enum.Option.html#method.take

and was suggested by Alan Jenkins (@sourcejedi).

It drops ~160 lines of code from our codebase, which makes me like it.
Also, I think it clarifies passing of ownership, and thus helps
readability a bit (at least for the initiated who know the new macro)
2018-03-22 20:21:42 +01:00
..
GVARIANT-SERIALIZATION sd-bus: drop kdbus-related docs (#5533) 2017-03-07 07:51:35 +01:00
bus-common-errors.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-common-errors.h resolved: implement D-Bus API for DNS-SD 2017-12-08 14:29:27 +02:00
bus-container.c fd-util: move certain fds above fd #2 (#8129) 2018-02-09 17:53:28 +01:00
bus-container.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-control.c Add support for SD_BUS_DEFAULT* 2018-01-23 09:40:25 -05:00
bus-control.h sd-bus: add asynchronous version of sd_bus_match() 2018-01-05 13:58:32 +01:00
bus-convenience.c Add support for SD_BUS_DEFAULT* 2018-01-23 09:40:25 -05:00
bus-creds.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-creds.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-dump.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-dump.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-error.c fuzz: skip bus error map in bus_error_name_to_errno() 2018-03-11 16:33:59 +01:00
bus-error.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-gvariant.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
bus-gvariant.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-internal.c sd-bus: when debug logging about messages, show the same bits of it everywhere 2018-01-05 13:55:08 +01:00
bus-internal.h sd-bus: cleanup ssh sessions (Closes: #8076) 2018-02-08 10:14:48 -08:00
bus-introspect.c tree-wide: use __fsetlocking() instead of fxyz_unlocked() 2017-12-14 10:42:25 +01:00
bus-introspect.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-kernel.c sd-bus: get rid of kdbus flags cruft 2018-01-05 13:55:08 +01:00
bus-kernel.h sd-bus: get rid of kdbus flags cruft 2018-01-05 13:55:08 +01:00
bus-match.c tree-wide: use __fsetlocking() instead of fxyz_unlocked() 2017-12-14 10:42:25 +01:00
bus-match.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-message.c Merge pull request #8314 from poettering/rearrange-stdio 2018-03-02 15:42:03 +01:00
bus-message.h sd-bus: drop some unused fields from the sd_bus_message structure 2018-01-05 13:58:32 +01:00
bus-objects.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
bus-objects.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-protocol.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-signature.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
bus-signature.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-slot.c sd-bus: when disconnecting a slot, also reset its memory 2018-01-05 13:58:32 +01:00
bus-slot.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-socket.c sd-bus: drop fd_nonblock() calls that are implied by rearrange_stdio() (#8514) 2018-03-21 11:46:49 +01:00
bus-socket.h sd-bus: optionally, use inotify to wait for bus sockets to appear 2018-01-05 13:55:08 +01:00
bus-track.c Add support for SD_BUS_DEFAULT* 2018-01-23 09:40:25 -05:00
bus-track.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
bus-type.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
bus-type.h log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
sd-bus.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
test-bus-benchmark.c tree-wide: use EXIT_SUCCESS/EXIT_FAILURE in exit() where we can 2017-12-25 11:48:21 +01:00
test-bus-chat.c tree-wide: install matches asynchronously 2018-01-05 13:58:32 +01:00
test-bus-cleanup.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-creds.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-error.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-gvariant.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-introspect.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-marshal.c tests: skip g_dbus_message_new_from_blob under asan 2018-03-09 15:17:03 +00:00
test-bus-match.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-objects.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-server.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-signature.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-bus-track.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
test-bus-vtable-cc.cc tests,meson: add test-bus-vtable, compiled as C and C++ 2017-05-13 15:50:44 -04:00
test-bus-vtable.c test-bus-vtable: it's OK if dbus is not running 2017-05-30 21:17:46 -04:00
test-bus-watch-bind.c sd-bus: optionally, use inotify to wait for bus sockets to appear 2018-01-05 13:55:08 +01:00