Systemd/src/systemd
Lennart Poettering 8f8f05a919 bus: add sd_bus_track object for tracking peers, and port core over to it
This is primarily useful for services that need to track clients which
reference certain objects they maintain, or which explicitly want to
subscribe to certain events. Something like this is done in a large
number of services, and not trivial to do. Hence, let's unify this at
one place.

This also ports over PID 1 to use this to ensure that subscriptions to
job and manager events are correctly tracked. As a side-effect this
makes sure we properly serialize and restore the track list across
daemon reexec/reload, which didn't work correctly before.

This also simplifies how we distribute messages to broadcast to the
direct busses: we only track subscriptions for the API bus and
implicitly assume that all direct busses are subscribed. This should be
a pretty OK simplification since clients connected via direct bus
connections are shortlived anyway.
2014-03-03 02:34:13 +01:00
..
_sd-common.h include: make direct includion of _sd-common.h harder 2013-11-20 19:36:14 +01:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
sd-bus-protocol.h driverd: implement AddMatch/RemoveMatch logic 2013-12-19 04:40:56 +01:00
sd-bus-vtable.h bus: introduce concept of "const" properties 2013-12-22 03:50:52 +01:00
sd-bus.h bus: add sd_bus_track object for tracking peers, and port core over to it 2014-03-03 02:34:13 +01:00
sd-daemon.h sd-damon is LGPL now 2014-02-19 18:23:14 +01:00
sd-dhcp-client.h sd-network: add new library 2014-02-28 01:01:13 +01:00
sd-dhcp-lease.h sd-network: add new library 2014-02-28 01:01:13 +01:00
sd-event.h event: add new kind of event source called "post" 2014-02-21 21:13:53 +01:00
sd-id128.h bus: rework bloom filter logic to operate with variable bloom filter 2014-01-28 00:57:38 +01:00
sd-journal.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-login.h libsystemd-login: add sd_session_get_remote_{host, user} 2013-12-21 22:02:57 -05:00
sd-memfd.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-messages.h logind: detect whether the system is docked, and if it is inhibit lid switch processing 2014-02-24 16:22:23 +01:00
sd-network.h sd-network: fix header 2014-02-28 02:08:08 +01:00
sd-readahead.h build-sys: merge libsystemd-daemon into libsystemd 2014-02-19 01:09:19 +01:00
sd-resolve.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-rtnl.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-shutdown.h shutdown: as sd-shutdown.h is a drop-in header it should not include any other headers of ours 2013-11-07 16:53:26 +01:00
sd-utf8.h bus: export utf8 validator calls as pure functions 2013-11-12 00:12:44 +01:00