src/shared/plymouth-util.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "errno-util.h" |
| 5 | #include "shared-forward.h" |
| 6 | |
| 7 | int plymouth_connect(int flags); |
| 8 | int plymouth_send_raw(const void *raw, size_t size, int flags); |
| 9 | int plymouth_send_msg(const char *text, bool pause_spinner); |
| 10 | int plymouth_hide_splash(void); |
| 11 | |
| 12 | static inline bool ERRNO_IS_NO_PLYMOUTH(int r) { |
| 13 | return IN_SET(ABS(r), EAGAIN, ENOENT) || ERRNO_IS_DISCONNECT(r); |
| 14 | } |