summaryrefslogtreecommitdiff
path: root/src/automount.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-02-03 03:27:25 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-03 05:06:04 +0100
commit81a5c6d03ef1e43e33bfb5ad006cf883c927a339 (patch)
treebfd68faab9b235f829ec573acc1eec3dc8145f7a /src/automount.h
parent9d2f51788e17355cdc287cc6d23169bef363d72e (diff)
automount: convert failure boolean to enum
Diffstat (limited to 'src/automount.h')
-rw-r--r--src/automount.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/automount.h b/src/automount.h
index 8334c9752d..19baee208b 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