chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
device: allow easy identification of network interfaces without their full sysfs...
[elogind.git]
/
automount.h
diff --git
a/automount.h
b/automount.h
index e7d778c7bbd0018af6ad7c7d8776adec288af12f..5b623691d4c9a5c09e9d4ba6d708e9a3fdab392a 100644
(file)
--- a/
automount.h
+++ b/
automount.h
@@
-28,38
+28,36
@@
typedef struct Automount Automount;
typedef enum AutomountState {
AUTOMOUNT_DEAD,
typedef enum AutomountState {
AUTOMOUNT_DEAD,
- AUTOMOUNT_START_PRE,
- AUTOMOUNT_START_POST,
AUTOMOUNT_WAITING,
AUTOMOUNT_RUNNING,
AUTOMOUNT_WAITING,
AUTOMOUNT_RUNNING,
- AUTOMOUNT_STOP_PRE,
- AUTOMOUNT_STOP_POST,
AUTOMOUNT_MAINTAINANCE,
AUTOMOUNT_MAINTAINANCE,
- _AUTOMOUNT_STATE_MAX
+ _AUTOMOUNT_STATE_MAX,
+ _AUTOMOUNT_STATE_INVALID = -1
} AutomountState;
} AutomountState;
-typedef enum AutomountExecCommand {
- AUTOMOUNT_EXEC_START_PRE,
- AUTOMOUNT_EXEC_START_POST,
- AUTOMOUNT_EXEC_STOP_PRE,
- AUTOMOUNT_EXEC_STOP_POST,
- _AUTOMOUNT_EXEC_MAX
-} AutomountExecCommand;
-
struct Automount {
Meta meta;
struct Automount {
Meta meta;
- AutomountState state;
- char *path;
-
- ExecCommand* exec_command[_AUTOMOUNT_EXEC_MAX];
- ExecContext exec_context;
+ AutomountState state, deserialized_state;
-
pid_t contol_pid
;
+
char *where
;
Mount *mount;
Mount *mount;
+
+ int pipe_fd;
+ Watch pipe_watch;
+ dev_t dev_id;
+
+ Set *tokens;
+
+ bool failure:1;
};
extern const UnitVTable automount_vtable;
};
extern const UnitVTable automount_vtable;
+int automount_send_ready(Automount *a, int status);
+
+const char* automount_state_to_string(AutomountState i);
+AutomountState automount_state_from_string(const char *s);
+
#endif
#endif