notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'notaz/master'
[libpicofe.git]
/
plat.h
diff --git
a/plat.h
b/plat.h
index
78dedf3
..
03949d6
100644
(file)
--- a/
plat.h
+++ b/
plat.h
@@
-16,6
+16,7
@@
struct plat_target {
int (*lcdrate_set)(int is_pal);
int (*gamma_set)(int val, int black_level);
int (*step_volume)(int *volume, int diff);
int (*lcdrate_set)(int is_pal);
int (*gamma_set)(int val, int black_level);
int (*step_volume)(int *volume, int diff);
+ int (*switch_layer)(int which, int enable);
const char **vout_methods;
int vout_method;
int vout_fullscreen;
const char **vout_methods;
int vout_method;
int vout_fullscreen;
@@
-83,6
+84,14
@@
static __inline int plat_target_step_volume(int *volume, int diff)
return -1;
}
return -1;
}
+/* switch device graphics layers/overlays */
+static __inline int plat_target_switch_layer(int which, int enable)
+{
+ if (plat_target.switch_layer)
+ return plat_target.switch_layer(which, enable);
+ return -1;
+}
+
/* menu: enter (switch bpp, etc), begin/end drawing */
void plat_video_menu_enter(int is_rom_loaded);
void plat_video_menu_begin(void);
/* menu: enter (switch bpp, etc), begin/end drawing */
void plat_video_menu_enter(int is_rom_loaded);
void plat_video_menu_begin(void);
@@
-95,6
+104,12
@@
void plat_video_wait_vsync(void);
/* return the dir/ where configs, saves, bios, etc. are found */
int plat_get_root_dir(char *dst, int len);
/* return the dir/ where configs, saves, bios, etc. are found */
int plat_get_root_dir(char *dst, int len);
+/* return the dir/ where skin files are found */
+int plat_get_skin_dir(char *dst, int len);
+
+/* return the top level dir for image files */
+int plat_get_data_dir(char *dst, int len);
+
int plat_is_dir(const char *path);
int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
void plat_sleep_ms(int ms);
int plat_is_dir(const char *path);
int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
void plat_sleep_ms(int ms);