chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename milestone to target
[elogind.git]
/
snapshot.c
diff --git
a/snapshot.c
b/snapshot.c
index fc7bb5f47898e1b42e0c8757a7586e160a3d5e28..8fd819e2a9ef979785d1d63d4a34b7f59109b3af 100644
(file)
--- a/
snapshot.c
+++ b/
snapshot.c
@@
-3,11
+3,7
@@
#include "name.h"
#include "snapshot.h"
#include "name.h"
#include "snapshot.h"
-static NameActiveState snapshot_active_state(Name *n) {
- return SNAPSHOT(n)->state == SNAPSHOT_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
-}
-
-static void snapshot_free_hook(Name *n) {
+static void snapshot_done(Name *n) {
Snapshot *s = SNAPSHOT(n);
assert(s);
Snapshot *s = SNAPSHOT(n);
assert(s);
@@
-15,17
+11,14
@@
static void snapshot_free_hook(Name *n) {
/* Nothing here for now */
}
/* Nothing here for now */
}
+static NameActiveState snapshot_active_state(Name *n) {
+ return SNAPSHOT(n)->state == SNAPSHOT_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
+}
+
const NameVTable snapshot_vtable = {
.suffix = ".snapshot",
const NameVTable snapshot_vtable = {
.suffix = ".snapshot",
- .load = NULL,
- .dump = NULL,
-
- .start = NULL,
- .stop = NULL,
- .reload = NULL,
-
- .active_state = snapshot_active_state,
+ .done = snapshot_done,
- .
free_hook = snapshot_free_hook
+ .
active_state = snapshot_active_state
};
};