summaryrefslogtreecommitdiff
path: root/milestone.c
diff options
context:
space:
mode:
Diffstat (limited to 'milestone.c')
-rw-r--r--milestone.c22
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
};