#ifndef PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_
#define PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_
#include <stddef.h>
#include "ppapi/c/ppp.h"
struct PP_StartFunctions {
int32_t (*PPP_InitializeModule)(PP_Module module_id,
PPB_GetInterface get_browser_interface);
void (*PPP_ShutdownModule)();
const void* (*PPP_GetInterface)(const char* interface_name);
};
struct PP_ThreadFunctions {
int (*thread_create)(uintptr_t* tid,
void (*func)(void* thread_argument),
void* thread_argument);
int (*thread_join)(uintptr_t tid);
};
#define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1"
struct nacl_irt_ppapihook {
int (*ppapi_start)(const struct PP_StartFunctions*);
void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions*);
};
#endif