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 pointer is passed to |
dmichael (off chromium)
2011/07/05 15:58:19
still missing </code>
jond
2011/07/05 17:09:23
Done.
jond
2011/07/05 17:09:23
Done.
| |
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>PP_AUDIO_INTERFACE</code> found in |
dmichael (off chromium)
2011/07/05 15:58:19
PP_AUDIO_INTERFACE->PPB_AUDIO_INTERFACE
jond
2011/07/05 17:09:23
Done.
| |
27 * <code>ppb.audio.h</code> or | |
28 * <code>PPB_GRAPHICS_2D_INTERFACE in ppb_graphics_2d.h. Click | |
dmichael (off chromium)
2011/07/05 15:58:19
still missing </code>
jond
2011/07/05 17:09:23
Done.
jond
2011/07/05 17:09:23
Done.
| |
26 * <a href="/chrome/nativeclient/docs/reference/pepperc/ | 29 * <a href="/chrome/nativeclient/docs/reference/pepperc/ |
27 *globals_defs.html" title="macros">here</a> for a complete list of interface | 30 * globals_defs.html" title="macros">here</a> for a complete list of interface |
28 * names. | 31 * names. |
29 * | 32 * |
30 * This value will be NULL if the interface is not supported on the browser. | 33 * This value will be NULL if the interface is not supported on the browser. |
31 */ | 34 */ |
32 typedef const void* (*PPB_GetInterface)(const char* interface_name); | 35 typedef const void* (*PPB_GetInterface)(const char* interface_name); |
33 /** | 36 /** |
34 * @} | 37 * @} |
35 */ | 38 */ |
36 #endif /* PPAPI_C_PPB_H_ */ | 39 #endif /* PPAPI_C_PPB_H_ */ |
37 | 40 |
OLD | NEW |