summaryrefslogtreecommitdiff
path: root/src/core/automount.h
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-04-14 22:01:48 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-21 20:23:41 +0200
commitdeb0a77cf0b409141c4b116ae30becb3d878e1ad (patch)
treeeb40f2d8df1cb1a6e7e5c6fbb367b3b8bdfc1a5f /src/core/automount.h
parent297f24a902110921a0627b40372ed2332229b706 (diff)
automount: add expire support
Diffstat (limited to 'src/core/automount.h')
-rw-r--r--src/core/automount.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/automount.h b/src/core/automount.h
index 60f5522389..2a50fef68d 100644
--- a/src/core/automount.h
+++ b/src/core/automount.h
@@ -47,6 +47,7 @@ struct Automount {
AutomountState state, deserialized_state;
char *where;
+ usec_t timeout_idle_usec;
int pipe_fd;
sd_event_source *pipe_event_source;
@@ -54,13 +55,16 @@ struct Automount {
dev_t dev_id;
Set *tokens;
+ Set *expire_tokens;
+
+ sd_event_source *expire_event_source;
AutomountResult result;
};
extern const UnitVTable automount_vtable;
-int automount_send_ready(Automount *a, int status);
+int automount_update_mount(Automount *a, MountState old_state, MountState state);
const char* automount_state_to_string(AutomountState i) _const_;
AutomountState automount_state_from_string(const char *s) _pure_;