chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: look at STDOUT, not STDIN, when determining tty columns
[elogind.git]
/
src
/
path.h
diff --git
a/src/path.h
b/src/path.h
index e0feeea7117145362cf5e9ddad3e7edb45acd4f3..ea2331c2abaee7d4bc2eadda54c6c356c611fbd8 100644
(file)
--- a/
src/path.h
+++ b/
src/path.h
@@
-1,4
+1,4
@@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8
; indent-tabs-mode: nil
-*-*/
#ifndef foopathhfoo
#define foopathhfoo
#ifndef foopathhfoo
#define foopathhfoo
@@
-31,7
+31,7
@@
typedef enum PathState {
PATH_DEAD,
PATH_WAITING,
PATH_RUNNING,
PATH_DEAD,
PATH_WAITING,
PATH_RUNNING,
- PATH_
MAINTENANCE
,
+ PATH_
FAILED
,
_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;
};