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 /milestone.c | |
parent | 9152c765065184d0c1267ed2499e3fe4cac53755 (diff) |
first attempt at proper service/socket logic
Diffstat (limited to 'milestone.c')
-rw-r--r-- | milestone.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/milestone.c b/milestone.c index ad8080aefc..fd4a6897ba 100644 --- a/milestone.c +++ b/milestone.c @@ -4,11 +4,7 @@ #include "milestone.h" #include "load-fragment.h" -static NameActiveState milestone_active_state(Name *n) { - return MILESTONE(n)->state == MILESTONE_DEAD ? NAME_INACTIVE : NAME_ACTIVE; -} - -static void milestone_free_hook(Name *n) { +static void milestone_done(Name *n) { Milestone *m = MILESTONE(n); assert(m); @@ -16,17 +12,15 @@ static void milestone_free_hook(Name *n) { /* Nothing here for now */ } +static NameActiveState milestone_active_state(Name *n) { + return MILESTONE(n)->state == MILESTONE_DEAD ? NAME_INACTIVE : NAME_ACTIVE; +} + const NameVTable milestone_vtable = { .suffix = ".milestone", - .load = name_load_fragment, - .dump = NULL, - - .start = NULL, - .stop = NULL, - .reload = NULL, - - .active_state = milestone_active_state, + .init = name_load_fragment, + .done = milestone_done, - .free_hook = milestone_free_hook + .active_state = milestone_active_state }; |