-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathos-update.h
31 lines (26 loc) · 928 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
#ifndef _OS_UPDATE_H_
#define _OS_UPDATE_H_
/*
* 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 freeLogo(void);
#endif /* _OS_UPDATE_H_ */