-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44d8db9
commit c22cbe2
Showing
12 changed files
with
65 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*-*- Mode: C; c-basic-offset: 8 -*-*/ | ||
|
||
#include "name.h" | ||
#include "target.h" | ||
#include "load-fragment.h" | ||
|
||
static void target_done(Name *n) { | ||
Target *m = TARGET(n); | ||
|
||
assert(m); | ||
|
||
/* Nothing here for now */ | ||
} | ||
|
||
static NameActiveState target_active_state(Name *n) { | ||
return TARGET(n)->state == TARGET_DEAD ? NAME_INACTIVE : NAME_ACTIVE; | ||
} | ||
|
||
const NameVTable target_vtable = { | ||
.suffix = ".target", | ||
|
||
.init = name_load_fragment, | ||
.done = target_done, | ||
|
||
.active_state = target_active_state | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*-*- Mode: C; c-basic-offset: 8 -*-*/ | ||
|
||
#ifndef footargethfoo | ||
#define footargethfoo | ||
|
||
typedef struct Target Target; | ||
|
||
#include "name.h" | ||
|
||
typedef enum TargetState { | ||
TARGET_DEAD, | ||
TARGET_ACTIVE | ||
} TargetState; | ||
|
||
struct Target { | ||
Meta meta; | ||
|
||
TargetState state; | ||
}; | ||
|
||
extern const NameVTable target_vtable; | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Meta] | ||
Names=multiuser.target | ||
Wants=postfix.socket syslog.socket | ||
Description=Default Target |