Systemd/src/core/show-status.h

25 lines
722 B
C
Raw Normal View History

/* SPDX-License-Identifier: LGPL-2.1+ */
2014-03-03 22:26:34 +01:00
#pragma once
#include <stdbool.h>
#include "macro.h"
2014-03-03 22:26:34 +01:00
/* Manager status */
typedef enum ShowStatus {
2018-07-23 14:55:26 +02:00
SHOW_STATUS_NO,
SHOW_STATUS_AUTO,
SHOW_STATUS_TEMPORARY,
SHOW_STATUS_YES,
_SHOW_STATUS_MAX,
2018-07-23 14:55:26 +02:00
_SHOW_STATUS_INVALID = -1,
2014-03-03 22:26:34 +01:00
} ShowStatus;
2018-07-23 14:55:26 +02:00
ShowStatus show_status_from_string(const char *v) _const_;
const char* show_status_to_string(ShowStatus s) _pure_;
2014-03-03 22:26:34 +01:00
int parse_show_status(const char *v, ShowStatus *ret);
int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char *format, va_list ap) _printf_(4,0);
int status_printf(const char *status, bool ellipse, bool ephemeral, const char *format, ...) _printf_(4,5);