Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PPAPI_SIMPLE_PPAPI_SIMPLE_MAIN_H_ | |
|
binji
2013/05/30 05:07:50
PS_MAIN_H
noelallen1
2013/05/30 18:07:19
Done.
| |
| 6 #define PPAPI_SIMPLE_PPAPI_SIMPLE_MAIN_H_ | |
| 7 | |
| 8 #include "ppapi_simple/ps.h" | |
| 9 #include "ppapi_simple/ps_event.h" | |
| 10 | |
| 11 EXTERN_C_BEGIN | |
| 12 | |
| 13 typedef int (*PSMainFunc_t)(int argc, const char *argv[]); | |
| 14 | |
| 15 /** | |
| 16 * PSCreateMain | |
|
binji
2013/05/30 05:07:50
PSMainCreate
noelallen1
2013/05/30 18:07:19
Done.
| |
| 17 * | |
| 18 * Constructs an instance SimpleInstance and configures it to call into | |
| 19 * the provided "main" function. | |
| 20 */ | |
| 21 void* PSMainCreate(PP_Instance inst, PSMainFunc_t func, const char **argv); | |
| 22 | |
| 23 | |
| 24 /** | |
| 25 * PPAPI_SIMPLE_REGISTER_MAIN | |
| 26 * | |
| 27 * Constructs a PSInstance ojbect and configures it to use call the provided | |
| 28 * 'main' function on it's own thread once initialization is complete. | |
| 29 */ | |
| 30 | |
| 31 | |
| 32 #define PPAPI_SIMPLE_REGISTER_MAIN(main, ...) \ | |
| 33 PPAPI_SIMPLE_USE_MAIN(PSMainCreate, main, ##__VA_ARGS__) | |
| 34 | |
| 35 EXTERN_C_END | |
| 36 | |
| 37 #endif /* PPAPI_SIMPLE_PPAPI_SIMPLE_MAIN_H_ */ | |
| 38 | |
| OLD | NEW |