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]
/
mount.c
diff --git
a/mount.c
b/mount.c
index fa92e5b7bb7a4fad76ff4e20fa4d115fe9ff4cd8..21d347785a0855bd45d4f3a38cc0d9ab5291ca8a 100644
(file)
--- a/
mount.c
+++ b/
mount.c
@@
-8,7
+8,7
@@
#include "load-fstab.h"
#include "load-dropin.h"
#include "load-fstab.h"
#include "load-dropin.h"
-static int mount_
load
(Name *n) {
+static int mount_
init
(Name *n) {
int r;
Mount *m = MOUNT(n);
int r;
Mount *m = MOUNT(n);
@@
-29,6
+29,13
@@
static int mount_load(Name *n) {
return r;
}
return r;
}
+static void mount_done(Name *n) {
+ Mount *d = MOUNT(n);
+
+ assert(d);
+ free(d->path);
+}
+
static void mount_dump(Name *n, FILE *f, const char *prefix) {
static const char* const state_table[_MOUNT_STATE_MAX] = {
static void mount_dump(Name *n, FILE *f, const char *prefix) {
static const char* const state_table[_MOUNT_STATE_MAX] = {
@@
-63,24
+70,13
@@
static NameActiveState mount_active_state(Name *n) {
return table[MOUNT(n)->state];
}
return table[MOUNT(n)->state];
}
-static void mount_free_hook(Name *n) {
- Mount *d = MOUNT(n);
-
- assert(d);
- free(d->path);
-}
-
const NameVTable mount_vtable = {
.suffix = ".mount",
const NameVTable mount_vtable = {
.suffix = ".mount",
- .
load = mount_load
,
- .d
ump = mount_dump
,
+ .
init = mount_init
,
+ .d
one = mount_done
,
- .start = NULL,
- .stop = NULL,
- .reload = NULL,
+ .dump = mount_dump,
.active_state = mount_active_state,
.active_state = mount_active_state,
-
- .free_hook = mount_free_hook
};
};