--- previous/src/dimension/nd_sdl.h 2018/04/24 19:30:01 1.1 +++ previous/src/dimension/nd_sdl.h 2018/04/24 19:31:36 1.1.1.2 @@ -14,23 +14,14 @@ extern "C" { extern const int VIDEO_VBL_MS; extern const int BLANK_MS; - typedef SDL_SpinLock lock_t; - typedef SDL_Thread thread_t; - typedef SDL_ThreadFunction thread_func_t; + void nd_sdl_init(void); + void nd_sdl_uninit(void); + void nd_sdl_pause(bool pause); + void nd_sdl_destroy(void); + void nd_start_interrupts(void); + void nd_vbl_handler(void); + void nd_video_vbl_handler(void); - void nd_sdl_init(); - void nd_sdl_uninit(); - void nd_sdl_destroy(); - - void lock(lock_t* lock); - void unlock(lock_t* lock); - void checklock(lock_t* lock); - int trylock(lock_t* lock); - Uint32 time_ms(); - void sleep_ms(Uint32 ms); - thread_t* thread_create(thread_func_t, void* data); - int thread_wait(thread_t* thread); - #ifdef __cplusplus } #endif