X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpath.h;h=ea2331c2abaee7d4bc2eadda54c6c356c611fbd8;hp=21a7dc49348025211f5e7a44a1143df0e317b298;hb=caca31b57621d4c5632e1fbf9ffa4259f05a13e5;hpb=01f78473b104d28db0fa813414092bc6358ae521 diff --git a/src/path.h b/src/path.h index 21a7dc493..ea2331c2a 100644 --- 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 @@ -31,7 +31,7 @@ typedef enum PathState { PATH_DEAD, PATH_WAITING, PATH_RUNNING, - PATH_MAINTAINANCE, + PATH_FAILED, _PATH_STATE_MAX, _PATH_STATE_INVALID = -1 } PathState; @@ -45,16 +45,18 @@ typedef enum PathType { } PathType; typedef struct PathSpec { - PathType type; char *path; + Watch watch; + + LIST_FIELDS(struct PathSpec, spec); + + PathType type; int inotify_fd; int primary_wd; - bool previous_exists; - Watch watch; + bool previous_exists; - LIST_FIELDS(struct PathSpec, spec); } PathSpec; struct Path { @@ -62,9 +64,10 @@ struct Path { LIST_HEAD(PathSpec, specs); - PathState state, deserialized_state; Unit *unit; + PathState state, deserialized_state; + bool failure; };