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 * Defines the API ... | 10 * This file defines a function pointer type for the PPB_GetInterface function. |
11 * | |
12 */ | 11 */ |
13 | 12 |
14 /** | 13 /** |
15 * @addtogroup Typedefs | 14 * @addtogroup Typedefs |
16 * @{ | 15 * @{ |
17 */ | 16 */ |
18 | 17 |
19 /** | 18 /** |
20 * Returns an interface pointer for the interface of the given name, or NULL | 19 * This function pointer type defines the signature for the PPB_GetInterface |
21 * if the interface is not supported. Interface names should be ASCII. | 20 * function. A generic PPB_GetInterface pointer is passed to |
dmichael(do not use this one)
2011/02/11 16:42:04
nit: 2 spaces after a period.
| |
21 * PPP_InitializedModule when your module is loaded. You can use this pointer | |
dmichael(do not use this one)
2011/02/11 16:42:04
nit: 2 spaces after a period.
| |
22 * to request a pointer to a specific browser interface. Browser interface | |
dmichael(do not use this one)
2011/02/11 16:42:04
nit: 2 spaces after period
| |
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 | |
dmichael(do not use this one)
2011/02/11 16:42:04
ppb.audio.h -> ppb_audio.h
| |
25 * PPB_GRAPHICS_2D_INTERFACE in ppb_graphics_2d.h. | |
26 * | |
27 * This value will be NULL if the interface is not supported on the browser. | |
22 */ | 28 */ |
23 typedef const void* (*PPB_GetInterface)(const char* interface_name); | 29 typedef const void* (*PPB_GetInterface)(const char* interface_name); |
24 /** | 30 /** |
25 * @} | 31 * @} |
26 */ | 32 */ |
27 #endif /* PPAPI_C_PPB_H_ */ | 33 #endif /* PPAPI_C_PPB_H_ */ |
28 | 34 |
OLD | NEW |