diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-26 04:18:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-26 04:18:44 +0100 |
commit | 034c6ed7da5e44bfdde5a5d0da75f7b7a59953b8 (patch) | |
tree | ea59315075d3ebda2de695b1bd0621d79fa9e987 /snapshot.c | |
parent | 9152c765065184d0c1267ed2499e3fe4cac53755 (diff) |
first attempt at proper service/socket logic
Diffstat (limited to 'snapshot.c')
-rw-r--r-- | snapshot.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/snapshot.c b/snapshot.c index fc7bb5f478..8fd819e2a9 100644 --- a/snapshot.c +++ b/snapshot.c @@ -3,11 +3,7 @@ #include "name.h" #include "snapshot.h" -static NameActiveState snapshot_active_state(Name *n) { - return SNAPSHOT(n)->state == SNAPSHOT_DEAD ? NAME_INACTIVE : NAME_ACTIVE; -} - -static void snapshot_free_hook(Name *n) { +static void snapshot_done(Name *n) { Snapshot *s = SNAPSHOT(n); assert(s); @@ -15,17 +11,14 @@ static void snapshot_free_hook(Name *n) { /* Nothing here for now */ } +static NameActiveState snapshot_active_state(Name *n) { + return SNAPSHOT(n)->state == SNAPSHOT_DEAD ? NAME_INACTIVE : NAME_ACTIVE; +} + const NameVTable snapshot_vtable = { .suffix = ".snapshot", - .load = NULL, - .dump = NULL, - - .start = NULL, - .stop = NULL, - .reload = NULL, - - .active_state = snapshot_active_state, + .done = snapshot_done, - .free_hook = snapshot_free_hook + .active_state = snapshot_active_state }; |