forked from sailfishos/yamui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos-update.h
34 lines (28 loc) · 962 Bytes
/
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
/* Initializes the minui
*
* @return 0 when successfull
* @return -1 when init fails, in this case anything below shouldn't be used.
*/
int osUpdateScreenInit();
/*
* Loads logo and overrides the old logo if already loaded.
* @param filename of the file located in /res/images/ without extension or path
* e.g. /res/images/logo.png => logo
* @return 0 when loading successful
* @return -1 when loading fails
*/
int loadLogo(const char* filename);
/*
* 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();