chiark / gitweb /
drop useless newline
[elogind.git] / target.c
1 /*-*- Mode: C; c-basic-offset: 8 -*-*/
2
3 #include "name.h"
4 #include "target.h"
5 #include "load-fragment.h"
6
7 static void target_done(Name *n) {
8         Target *m = TARGET(n);
9
10         assert(m);
11
12         /* Nothing here for now */
13 }
14
15 static NameActiveState target_active_state(Name *n) {
16         return TARGET(n)->state == TARGET_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
17 }
18
19 const NameVTable target_vtable = {
20         .suffix = ".target",
21
22         .init = name_load_fragment,
23         .done = target_done,
24
25         .active_state = target_active_state
26 };