diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-15 23:16:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-15 23:16:16 +0200 |
commit | 05e343b70453716cc6292b17e7ef175a8c106aad (patch) | |
tree | 69046ed39bba96164cf4e2a157b3dcc5a6d415f6 /unit.h | |
parent | 4f2d528d3bb25cebf8d3ebe83d8193ab4016cb90 (diff) |
service: optionally, trie dbus name cycle to service cycle
Diffstat (limited to 'unit.h')
-rw-r--r-- | unit.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -250,8 +250,17 @@ struct UnitVTable { void (*sigchld_event)(Unit *u, pid_t pid, int code, int status); void (*timer_event)(Unit *u, uint64_t n_elapsed, Watch *w); + /* Called whenever any of the cgroups this unit watches for + * ran empty */ void (*cgroup_notify_empty)(Unit *u); + /* Called whenever a name thus Unit registered for comes or + * goes away. */ + void (*bus_name_owner_change)(Unit *u, const char *name, const char *old_owner, const char *new_owner); + + /* Called whenever a bus PID lookup finishes */ + void (*bus_query_pid_done)(Unit *u, const char *name, pid_t pid); + /* This is called for each unit type and should be used to * enumerate existing devices and load them. However, * everything that is loaded here should still stay in @@ -348,6 +357,9 @@ void unit_unwatch_pid(Unit *u, pid_t pid); int unit_watch_timer(Unit *u, usec_t delay, Watch *w); void unit_unwatch_timer(Unit *u, Watch *w); +int unit_watch_bus_name(Unit *u, const char *name); +void unit_unwatch_bus_name(Unit *u, const char *name); + bool unit_job_is_applicable(Unit *u, JobType j); int set_unit_path(const char *p); |