start new makefile, migrate to libpicofe
[picodrive.git] / pico / pico.h
index e0acda1..da0a9a7 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef PICO_H\r
 #define PICO_H\r
 \r
-//#include <stdio.h>\r
+#include <stdlib.h> // size_t\r
 \r
 // port-specific compile-time settings\r
 #include <port_config.h>\r
@@ -33,7 +33,7 @@ extern void cache_flush_d_inval_i(const void *start_addr, const void *end_addr);
 \r
 // attempt to alloc mem at specified address.\r
 // alloc anywhere else if that fails (callers should handle that)\r
-extern void *plat_mmap(unsigned long addr, size_t size);\r
+extern void *plat_mmap(unsigned long addr, size_t size, int need_exec, int is_fixed);\r
 extern void *plat_mremap(void *ptr, size_t oldsize, size_t newsize);\r
 extern void  plat_munmap(void *ptr, size_t size);\r
 \r
@@ -90,7 +90,7 @@ void PicoLoopPrepare(void);
 void PicoFrame(void);\r
 void PicoFrameDrawOnly(void);\r
 extern int PicoPad[2]; // Joypads, format is MXYZ SACB RLDU\r
-extern void (*PicoWriteSound)(int len); // called once per frame at the best time to send sound buffer (PsndOut) to hardware\r
+extern void (*PicoWriteSound)(int bytes); // called once per frame at the best time to send sound buffer (PsndOut) to hardware\r
 extern void (*PicoMessage)(const char *msg); // callback to output text message from emu\r
 typedef enum { PI_ROM, PI_ISPAL, PI_IS40_CELL, PI_IS240_LINES } pint_t;\r
 typedef union { int vint; void *vptr; } pint_ret_t;\r