forked from sailfishos/yamui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos-update.h
40 lines (33 loc) · 1.11 KB
/
os-update.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
#ifndef _OS_UPDATE_H_
#define _OS_UPDATE_H_
#include <stdbool.h>
/* Initializes the minui
*
* @return 0 when successfull
* @return -1 when init fails, in this case anything below shouldn't be used.
*/
int osUpdateScreenInit(bool blank);
/*
* Loads logo and overrides the old logo if already loaded.
* @param filename of the file located in dir without extension or
* path e.g. /res/images/logo.png => filename:logo, dir:/res/images
* @param dir directory with images
* @return 0 when loading successful
* @return -1 when loading fails
*/
int loadLogo(const char *filename, const char *dir);
/*
* Draw logo if one has been loaded with loadLogo.
* @return 0 when logo drawn successfully
* @return -1 if there is no logo to show
*/
int showLogo(void);
/*
* Draw progress bar to the screen with logo if defined.
* @param percentage precentage number between 0 and 100 that is shown
* as a progress bar on the screen.
*/
void osUpdateScreenShowProgress(int percentage);
/* Should be called before ending application, to free memory etc. */
void osUpdateScreenExit(void);
#endif /* _OS_UPDATE_H_ */