21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_NACL
28 #include "ppapi_simple/ps_main.h"
29 #include "ppapi_simple/ps_event.h"
30 #include "ppapi_simple/ps_interface.h"
31 #include "nacl_io/nacl_io.h"
32 #include "sys/mount.h"
37 nacl_main(
int argc,
char *argv[])
44 const PPB_View *ppb_view = PSInterfaceView();
50 PSEventSetFilter(PSE_INSTANCE_DIDCHANGEVIEW);
53 while (!ready && (ps_event = PSEventWaitAcquire()) !=
NULL) {
54 event = ps_event->as_resource;
55 switch(ps_event->type) {
57 case PSE_INSTANCE_DIDCHANGEVIEW:
58 ppb_view->GetRect(event, &
rect);
65 PSEventRelease(ps_event);
73 nacl_io_init_ppapi(PSGetInstanceId(), PSGetInterface);
91 PPAPI_SIMPLE_REGISTER_MAIN(nacl_main);