OLD | NEW |
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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_C_PPB_H_ | 5 #ifndef PPAPI_C_PPB_H_ |
6 #define PPAPI_C_PPB_H_ | 6 #define PPAPI_C_PPB_H_ |
7 | 7 |
8 /** | 8 /** |
9 * @file | 9 * @file |
10 * This file defines a function pointer type for the PPB_GetInterface function. | 10 * This file defines a function pointer type for the PPB_GetInterface function. |
11 */ | 11 */ |
12 | 12 |
13 /** | 13 /** |
14 * @addtogroup Typedefs | 14 * @addtogroup Typedefs |
15 * @{ | 15 * @{ |
16 */ | 16 */ |
17 | 17 |
18 /** | 18 /** |
19 * This function pointer type defines the signature for the PPB_GetInterface | 19 * This function pointer type defines the signature for the PPB_GetInterface |
20 * function. A generic PPB_GetInterface pointer is passed to | 20 * function. A generic PPB_GetInterface pointer is passed to |
21 * PPP_InitializedModule when your module is loaded. You can use this pointer | 21 * PPP_InitializedModule when your module is loaded. You can use this pointer |
22 * to request a pointer to a specific browser interface. Browser interface | 22 * to request a pointer to a specific browser interface. Browser interface |
23 * names are ASCII strings and are generally defined in the header file for the | 23 * names are ASCII strings and are generally defined in the header file for the |
24 * interface, such as PP_AUDIO_INTERFACE found in ppb.audio.h or | 24 * interface, such as PP_AUDIO_INTERFACE found in ppb.audio.h or |
25 * PPB_GRAPHICS_2D_INTERFACE in ppb_graphics_2d.h. | 25 * PPB_GRAPHICS_2D_INTERFACE in ppb_graphics_2d.h. Click |
| 26 * <a href="http://code.google.com/chrome/nativeclient/docs/reference/pepperc/ |
| 27 *globals_defs.html" title="macros">here</a> for a complete list of interface |
| 28 * names. |
26 * | 29 * |
27 * This value will be NULL if the interface is not supported on the browser. | 30 * This value will be NULL if the interface is not supported on the browser. |
28 */ | 31 */ |
29 typedef const void* (*PPB_GetInterface)(const char* interface_name); | 32 typedef const void* (*PPB_GetInterface)(const char* interface_name); |
30 /** | 33 /** |
31 * @} | 34 * @} |
32 */ | 35 */ |
33 #endif /* PPAPI_C_PPB_H_ */ | 36 #endif /* PPAPI_C_PPB_H_ */ |
34 | 37 |
OLD | NEW |