#ifndef LIBPICOFE_PLAT_H
#define LIBPICOFE_PLAT_H
+#include <stdlib.h>
+
#ifdef __cplusplus
extern "C" {
#endif
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);
- char **hwfilters;
+ int (*step_volume)(int *volume, int diff);
+ const char **vout_methods;
+ int vout_method;
+ int vout_fullscreen;
+ const char **hwfilters;
+ int hwfilter;
};
extern struct plat_target plat_target;
}
/* 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;
}
void *plat_mmap(unsigned long addr, size_t size, int need_exec, int is_fixed);
void *plat_mremap(void *ptr, size_t oldsize, size_t newsize);
void plat_munmap(void *ptr, size_t size);
+int plat_mem_set_exec(void *ptr, size_t size);
/* timers, to be used for time diff and must refer to the same clock */
unsigned int plat_get_ticks_ms(void);