X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fautomount.h;h=19baee208b2dc62b911b1236b0c82e6e5efc9a17;hp=8334c9752d4c128f36d0ed2f79b2bf92ca1c5fab;hb=ee4cbc2c85edacab721c710e1f99aedd5c2e3a3a;hpb=ac155bb885f9ea8aac3979a6b2686f0c8a9cc6e3 diff --git a/src/automount.h b/src/automount.h index 8334c9752..19baee208 100644 --- a/src/automount.h +++ b/src/automount.h @@ -35,6 +35,13 @@ typedef enum AutomountState { _AUTOMOUNT_STATE_INVALID = -1 } AutomountState; +typedef enum AutomountResult { + AUTOMOUNT_SUCCESS, + AUTOMOUNT_FAILURE_RESOURCES, + _AUTOMOUNT_RESULT_MAX, + _AUTOMOUNT_RESULT_INVALID = -1 +} AutomountResult; + struct Automount { Unit meta; @@ -51,7 +58,7 @@ struct Automount { Set *tokens; - bool failure:1; + AutomountResult result; }; extern const UnitVTable automount_vtable; @@ -63,4 +70,7 @@ int automount_add_one_mount_link(Automount *a, Mount *m); const char* automount_state_to_string(AutomountState i); AutomountState automount_state_from_string(const char *s); +const char* automount_result_to_string(AutomountResult i); +AutomountResult automount_result_from_string(const char *s); + #endif