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=1a6cc98fd1ee857406cc68f8eccc133fe8c975af;hb=9b1a953e08917030489cd9adb2a17dfd407ce14b;hpb=74ac3cbd509de2f5995542aa5db39328e8cbd22a diff --git a/src/automount.h b/src/automount.h index 1a6cc98fd..19baee208 100644 --- a/src/automount.h +++ b/src/automount.h @@ -35,24 +35,30 @@ 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 { - Meta meta; + Unit meta; AutomountState state, deserialized_state; char *where; - Mount *mount; + UnitRef mount; int pipe_fd; mode_t directory_mode; Watch pipe_watch; dev_t dev_id; - Set *tokens; - bool failure:1; + AutomountResult result; }; extern const UnitVTable automount_vtable; @@ -64,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