summaryrefslogtreecommitdiff
path: root/unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'unit.h')
-rw-r--r--unit.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/unit.h b/unit.h
index c0423354d1..338a58b009 100644
--- a/unit.h
+++ b/unit.h
@@ -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);