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