summaryrefslogtreecommitdiff
path: root/src/core/manager.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-27 23:02:54 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-27 23:02:54 -0400
commit127d5fd1563a74411aaceeadd251f98fd52216d7 (patch)
tree03ee9e52fc3027e46bab315a132cba4c9cac0a91 /src/core/manager.h
parent2de51fdc5218d6c4f148989f8907cf0fc842abea (diff)
manager: convert ephemeral to enum
In preparation for subsequent changes.
Diffstat (limited to 'src/core/manager.h')
-rw-r--r--src/core/manager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/manager.h b/src/core/manager.h
index 782b85da00..d0c0f58d0b 100644
--- a/src/core/manager.h
+++ b/src/core/manager.h
@@ -60,6 +60,11 @@ typedef enum ManagerExitCode {
_MANAGER_EXIT_CODE_INVALID = -1
} ManagerExitCode;
+typedef enum StatusType {
+ STATUS_TYPE_EPHEMERAL,
+ STATUS_TYPE_NORMAL,
+} StatusType;
+
#include "unit.h"
#include "job.h"
#include "hashmap.h"
@@ -349,7 +354,7 @@ void manager_recheck_journal(Manager *m);
void manager_set_show_status(Manager *m, ShowStatus mode);
void manager_set_first_boot(Manager *m, bool b);
-void manager_status_printf(Manager *m, bool ephemeral, const char *status, const char *format, ...) _printf_(4,5);
+void manager_status_printf(Manager *m, StatusType type, const char *status, const char *format, ...) _printf_(4,5);
void manager_flip_auto_status(Manager *m, bool enable);
Set *manager_get_units_requiring_mounts_for(Manager *m, const char *path);