| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 #ifndef PPAPI_SIMPLE_PS_H_ | 5 #ifndef PPAPI_SIMPLE_PS_H_ |
| 6 #define PPAPI_SIMPLE_PS_H_ | 6 #define PPAPI_SIMPLE_PS_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "sdk_util/macros.h" | 9 #include "sdk_util/macros.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 PP_Instance PSGetInstanceId(void); | 46 PP_Instance PSGetInstanceId(void); |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * PSGetInterface | 49 * PSGetInterface |
| 50 * | 50 * |
| 51 * Return the Pepper instance referred to by 'name'. Will return a pointer | 51 * Return the Pepper instance referred to by 'name'. Will return a pointer |
| 52 * to the interface, or NULL if not found or not available. | 52 * to the interface, or NULL if not found or not available. |
| 53 */ | 53 */ |
| 54 const void* PSGetInterface(const char *name); | 54 const void* PSGetInterface(const char *name); |
| 55 | 55 |
| 56 /** | |
| 57 * PSUserCreateInstance | |
| 58 * | |
| 59 * Prototype for the user provided function which creates and configures | |
| 60 * the instance object. This function is defined by one of the macros below, | |
| 61 * or by the equivalent macro in one of the other headers. For 'C' | |
| 62 * development, one of the basic instances which support C callback are used. | |
| 63 * For C++, this function should instantiate the user defined instance. See | |
| 64 * the two macros below. | |
| 65 */ | |
| 66 extern void* PSUserCreateInstance(PP_Instance inst); | |
| 67 | |
| 68 EXTERN_C_END | 56 EXTERN_C_END |
| 69 | 57 |
| 70 #endif /* PPAPI_SIMPLE_PS_H_ */ | 58 #endif /* PPAPI_SIMPLE_PS_H_ */ |
| OLD | NEW |