X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpath.h;h=5c06de4dfe667195fefbad3c7345b983077158d0;hb=36adffeab07c74470bc96417b17a72b53055ee42;hp=e0feeea7117145362cf5e9ddad3e7edb45acd4f3;hpb=18c78fb1af5415bb6f87d9c7cae1f9c60e14ae24;p=elogind.git diff --git a/src/path.h b/src/path.h index e0feeea71..5c06de4df 100644 --- a/src/path.h +++ b/src/path.h @@ -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; };