forked from tano-systems/psplash-tn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsplash-uci.h
92 lines (70 loc) · 1.87 KB
/
psplash-uci.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
* pslash - a lightweight framebuffer splashscreen for embedded devices.
*
* Copyright (c) 2020 Tano Systems LLC, Anton Kikin <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _HAVE_PSPLASH_UCI_H
#define _HAVE_PSPLASH_UCI_H
#include <uci.h>
#include "psplash-fb.h"
#if defined(ENABLE_ALIVE_GIF)
#include "psplash-alive.h"
#endif
#define PSPLASH_STARTUP_MSG_SIZE 256
#define PSPLASH_IMAGE_PATH_SIZE 256
typedef struct PSplashConfig
{
char startup_msg[PSPLASH_STARTUP_MSG_SIZE];
char image[PSPLASH_IMAGE_PATH_SIZE];
int enable_bar;
int enable_msg;
int ignore_msg_cmds;
int disable_console_switch;
int angle;
int fbdev_id;
int fbnodb;
int img_fullscreen;
int img_split_numerator;
int img_split_denominator;
int msg_padding;
int bar_width;
int bar_height;
int bar_border_width;
int bar_border_space;
struct
{
PSplashColor background;
PSplashColor text;
PSplashColor bar;
PSplashColor bar_background;
PSplashColor bar_border;
PSplashColor bar_border_space;
} colors;
#if defined(ENABLE_ALIVE_GIF)
struct
{
int enable;
char image[PSPLASH_IMAGE_PATH_SIZE];
enum PSplashAliveAnimationMode animation_mode;
int img_v_split_numerator;
int img_v_split_denominator;
int img_h_split_numerator;
int img_h_split_denominator;
} alive;
#endif
} PSplashConfig;
extern PSplashConfig config;
void psplash_uci_init_config(void);
int psplash_uci_read_config(void);
#endif