-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpsplash-alive.h
71 lines (57 loc) · 1.54 KB
/
psplash-alive.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
/*
* 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_ALIVE_H
#define _HAVE_PSPLASH_ALIVE_H
#include "psplash-fb.h"
enum PSplashAliveAnimationMode
{
PSPLASH_ALIVE_ANIMATION_MODE_AUTO = 0, /* Automatically */
PSPLASH_ALIVE_ANIMATION_MODE_MSG = 1, /* By 'ALIVE' message */
};
#if defined(ENABLE_ALIVE_GIF)
int psplash_alive_load(void);
int psplash_alive_init(void);
unsigned int psplash_alive_frame_duration_ms(void);
int psplash_alive_frame_render(PSplashFB *fb);
void psplash_alive_frame_next(void);
int psplash_alive_destroy(void);
#else
static inline int psplash_alive_load(void)
{
return 0;
}
static inline int psplash_alive_init(void)
{
return 0;
}
static unsigned int psplash_alive_frame_duration_ms(void)
{
return 0;
}
static inline int psplash_alive_frame_render(PSplashFB *fb)
{
return 0;
}
static inline void psplash_alive_frame_next(void)
{
}
static inline int psplash_alive_destroy(void)
{
return 0;
}
#endif
#endif