chiark / gitweb /
implement proper binding on ports
[elogind.git] / milestone.c
1 /*-*- Mode: C; c-basic-offset: 8 -*-*/
2
3 #include "name.h"
4 #include "milestone.h"
5 #include "load-fragment.h"
6
7 static NameActiveState milestone_active_state(Name *n) {
8         return MILESTONE(n)->state == MILESTONE_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
9 }
10
11 static void milestone_free_hook(Name *n) {
12         Milestone *m = MILESTONE(n);
13
14         assert(m);
15
16         /* Nothing here for now */
17 }
18
19 const NameVTable milestone_vtable = {
20         .suffix = ".milestone",
21
22         .load = name_load_fragment,
23         .dump = NULL,
24
25         .start = NULL,
26         .stop = NULL,
27         .reload = NULL,
28
29         .active_state = milestone_active_state,
30
31         .free_hook = milestone_free_hook
32 };