summaryrefslogtreecommitdiff
path: root/src/core/show-status.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-26 22:34:47 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:56 +0100
commitb8faf2ecd551d853c449c7cadc3944af84156bc9 (patch)
treee732e26b6793edd0616f3c047794da26ef894255 /src/core/show-status.h
parent8b43440b7ef4b81c69c31de7ff820dc07a780254 (diff)
util-lib: move status printing stuff into src/core/
It's very specific to the core, and not used elsewhere, hence move it out of terminal-util.[ch].
Diffstat (limited to 'src/core/show-status.h')
-rw-r--r--src/core/show-status.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/show-status.h b/src/core/show-status.h
index a2b2153746..c79d4acb66 100644
--- a/src/core/show-status.h
+++ b/src/core/show-status.h
@@ -21,6 +21,10 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <stdbool.h>
+
+#include "macro.h"
+
/* Manager status */
typedef enum ShowStatus {
@@ -32,3 +36,6 @@ typedef enum ShowStatus {
} ShowStatus;
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);