]> git.ipfire.org Git - thirdparty/util-linux.git/blame - include/plymouth-ctrl.h
kill: add missing ifdefs
[thirdparty/util-linux.git] / include / plymouth-ctrl.h
CommitLineData
fe3f7e17 1/*
9e930041 2 * plymouth-ctrl.h Header file for communications with plymouthd
fe3f7e17
WF
3 *
4 * Copyright (c) 2016 SUSE Linux GmbH, All rights reserved.
5 * Copyright (c) 2016 Werner Fink <werner@suse.de>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
2bb3aa36 11 *
fe3f7e17
WF
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program (see the file COPYING); if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
21 *
22 * Author: Werner Fink <werner@suse.de>
23 */
24
25/*
26 * Taken from plymouth 0.9.0 src/ply-boot-protocol.h
27 */
28
29#ifndef UTIL_LINUX_PLYMOUTH_CTRL_H
30#define UTIL_LINUX_PLYMOUTH_CTRL_H
31
32#define PLYMOUTH_SOCKET_PATH "\0/org/freedesktop/plymouthd"
33#define ANSWER_TYP '\x2'
34#define ANSWER_ENQ '\x5'
35#define ANSWER_ACK '\x6'
36#define ANSWER_MLT '\t'
37#define ANSWER_NCK '\x15'
38
39#define MAGIC_PRG_STOP 'A'
40#define MAGIC_PRG_CONT 'a'
41#define MAGIC_UPDATE 'U'
42#define MAGIC_SYS_UPDATE 'u'
43#define MAGIC_SYS_INIT 'S'
44#define MAGIC_DEACTIVATE 'D'
45#define MAGIC_REACTIVATE 'r'
46#define MAGIC_SHOW_SPLASH '$'
47#define MAGIC_HIDE_SPLASH 'H'
48#define MAGIC_CHMOD 'C'
49#define MAGIC_CHROOT 'R'
50#define MAGIC_ACTIVE_VT 'V'
51#define MAGIC_QUESTION 'W'
52#define MAGIC_SHOW_MSG 'M'
53#define MAGIC_HIDE_MSG 'm'
54#define MAGIC_KEYSTROKE 'K'
55#define MAGIC_KEYSTROKE_RM 'L'
56#define MAGIC_PING 'P'
57#define MAGIC_QUIT 'Q'
58#define MAGIC_CACHED_PWD 'c'
59#define MAGIC_ASK_PWD '*'
60#define MAGIC_DETAILS '!'
61
62#define PLYMOUTH_TERMIOS_FLAGS_DELAY 30
63extern int plymouth_command(int cmd, ...);
64
65#endif /* UTIL_LINUX_PLYMOUTH_CTRL_H */