summaryrefslogtreecommitdiff
path: root/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-28 06:45:44 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-28 06:45:55 +0100
commit7824bbebe329eea611b809e2fff3e6df4073a465 (patch)
tree13a78d89f0086af7113dfbc279778f944115bb8e /unit.h
parentfb624d04e56018defe297eff1d88888b192caeaa (diff)
add new manager initializer callbacks to per-unit type vtable
Diffstat (limited to 'unit.h')
-rw-r--r--unit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unit.h b/unit.h
index f9d96c7efc..7ab2ccdfbc 100644
--- a/unit.h
+++ b/unit.h
@@ -160,6 +160,9 @@ struct UnitVTable {
void (*fd_event)(Unit *u, int fd, uint32_t events, Watch *w);
void (*sigchld_event)(Unit *u, pid_t pid, int code, int status);
void (*timer_event)(Unit *u, uint64_t n_elapsed, Watch *w);
+
+ int (*enumerate)(Manager *m);
+ void (*shutdown)(Manager *m);
};
extern const UnitVTable * const unit_vtable[_UNIT_TYPE_MAX];