X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plat.h;h=d48a5412f1304fb3bce64355920e2aa399ab44aa;hb=515ac0b9d2c4d45a465335d54b8c49830914fcea;hp=54436cd671acf2605aa158ed70948afdfa3a44ca;hpb=6282e17ef5f37915df1a77b5d7138c666e94d0fb;p=libpicofe.git diff --git a/plat.h b/plat.h index 54436cd..d48a541 100644 --- a/plat.h +++ b/plat.h @@ -15,7 +15,8 @@ struct plat_target { int (*hwfilter_set)(int which); int (*lcdrate_set)(int is_pal); int (*gamma_set)(int val, int black_level); - int (*step_volume)(int is_up); + int (*step_volume)(int *volume, int diff); + int (*switch_layer)(int which, int enable); const char **vout_methods; int vout_method; int vout_fullscreen; @@ -76,10 +77,18 @@ static __inline int plat_target_gamma_set(int val, int black_level) } /* step sound volume up or down */ -static __inline int plat_target_step_volume(int is_up) +static __inline int plat_target_step_volume(int *volume, int diff) { if (plat_target.step_volume) - return plat_target.step_volume(is_up); + return plat_target.step_volume(volume, diff); + 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; } @@ -95,6 +104,9 @@ 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 skin files are found */ +int plat_get_skin_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);