OLD | NEW |
1 /* Copyright (c) 2011 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 | 5 |
6 /* From ppb.idl modified Fri Aug 12 10:40:59 2011. */ | 6 /* From ppb.idl modified Thu Feb 16 15:06:45 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_H_ | 8 #ifndef PPAPI_C_PPB_H_ |
9 #define PPAPI_C_PPB_H_ | 9 #define PPAPI_C_PPB_H_ |
10 | 10 |
11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
13 | 13 |
14 /** | 14 /** |
15 * @file | 15 * @file |
16 * This file defines a function pointer type for the | 16 * This file defines a function pointer type for the |
17 * <code>PPB_GetInterface</code> function. | 17 * <code>PPB_GetInterface</code> function. |
18 */ | 18 */ |
19 | 19 |
20 | 20 |
21 /** | 21 /** |
22 * @addtogroup Typedefs | 22 * @addtogroup Typedefs |
23 * @{ | 23 * @{ |
24 */ | 24 */ |
25 /** | 25 /** |
26 * This function pointer type defines the signature for the | 26 * This function pointer type defines the signature for the |
27 * <code>PPB_GetInterface</code> function. A generic | 27 * <code>PPB_GetInterface</code> function. A generic |
28 * <code>PPB_GetInterface</code> pointer is passed to | 28 * <code>PPB_GetInterface</code> pointer is passed to |
29 * <code>PPP_InitializedModule</code> when your module is loaded. You can use | 29 * <code>PPP_InitializedModule</code> when your module is loaded. You can use |
30 * this pointer to request a pointer to a specific browser interface. Browser | 30 * this pointer to request a pointer to a specific browser interface. Browser |
31 * interface names are ASCII strings and are generally defined in the header | 31 * interface names are ASCII strings and are generally defined in the header |
32 * file for the interface, such as <code>PPB_AUDIO_INTERFACE</code> found in | 32 * file for the interface, such as <code>PPB_AUDIO_INTERFACE</code> found in |
33 * <code>ppb.audio.h</code> or | 33 * <code>ppb.audio.h</code> or |
34 * <code>PPB_GRAPHICS_2D_INTERFACE</code> in <code>ppb_graphics_2d.h</code>. | 34 * <code>PPB_GRAPHICS_2D_INTERFACE</code> in <code>ppb_graphics_2d.h</code>. |
35 * Click | 35 * Click |
36 * <a href="/chrome/nativeclient/docs/reference/pepperc/globals_defs.html" | 36 * <a href="/chrome/nativeclient/docs/reference/pepperc/globals_defs" |
37 * title="macros">here</a> for a complete list of interface | 37 * title="macros">here</a> for a complete list of interface |
38 * names. | 38 * names. |
39 * | 39 * |
40 * This value will be NULL if the interface is not supported on the browser. | 40 * This value will be NULL if the interface is not supported on the browser. |
41 */ | 41 */ |
42 typedef const void* (*PPB_GetInterface)(const char* interface_name); | 42 typedef const void* (*PPB_GetInterface)(const char* interface_name); |
43 /** | 43 /** |
44 * @} | 44 * @} |
45 */ | 45 */ |
46 | 46 |
47 #endif /* PPAPI_C_PPB_H_ */ | 47 #endif /* PPAPI_C_PPB_H_ */ |
48 | 48 |
OLD | NEW |