chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: if the system bus cannot be found, send cgroup empty msg directly to init...
[elogind.git]
/
src
/
path.h
diff --git
a/src/path.h
b/src/path.h
index 21a7dc49348025211f5e7a44a1143df0e317b298..5c06de4dfe667195fefbad3c7345b983077158d0 100644
(file)
--- a/
src/path.h
+++ b/
src/path.h
@@
-31,7
+31,7
@@
typedef enum PathState {
PATH_DEAD,
PATH_WAITING,
PATH_RUNNING,
PATH_DEAD,
PATH_WAITING,
PATH_RUNNING,
- PATH_MAINT
AI
NANCE,
+ PATH_MAINT
E
NANCE,
_PATH_STATE_MAX,
_PATH_STATE_INVALID = -1
} PathState;
_PATH_STATE_MAX,
_PATH_STATE_INVALID = -1
} PathState;
@@
-45,16
+45,18
@@
typedef enum PathType {
} PathType;
typedef struct PathSpec {
} PathType;
typedef struct PathSpec {
- PathType type;
char *path;
char *path;
+ Watch watch;
+
+ LIST_FIELDS(struct PathSpec, spec);
+
+ PathType type;
int inotify_fd;
int primary_wd;
int inotify_fd;
int primary_wd;
- bool previous_exists;
-
Watch watch
;
+
bool previous_exists
;
- LIST_FIELDS(struct PathSpec, spec);
} PathSpec;
struct Path {
} PathSpec;
struct Path {
@@
-62,9
+64,10
@@
struct Path {
LIST_HEAD(PathSpec, specs);
LIST_HEAD(PathSpec, specs);
- PathState state, deserialized_state;
Unit *unit;
Unit *unit;
+ PathState state, deserialized_state;
+
bool failure;
};
bool failure;
};