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_CORE_H_ | 5 #ifndef PPAPI_C_PPB_CORE_H_ |
6 #define PPAPI_C_PPB_CORE_H_ | 6 #define PPAPI_C_PPB_CORE_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
11 #include "ppapi/c/pp_time.h" | 11 #include "ppapi/c/pp_time.h" |
12 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
13 | 13 |
14 struct PP_CompletionCallback; | 14 struct PP_CompletionCallback; |
15 | 15 |
16 #define PPB_CORE_INTERFACE "PPB_Core;0.3" | 16 #define PPB_CORE_INTERFACE "PPB_Core;0.3" |
17 | 17 |
18 /** | 18 /** |
19 * @file | 19 * @file |
20 * Defines the API ... | 20 * Defines the API ... |
21 * | 21 * |
22 * @addtogroup PPB | 22 */ |
23 | |
24 /** | |
25 * @addtogroup Interfaces | |
23 * @{ | 26 * @{ |
24 */ | 27 */ |
25 | 28 |
26 /** {PENDING: describe PPB_CORE} */ | 29 /** {PENDING: describe PPB_CORE} */ |
27 struct PPB_Core { | 30 struct PPB_Core { |
dmichael(do not use this one)
2011/01/27 21:46:56
Looks like you accidentally added a space.
| |
28 /** Same as AddRefVar for Resources. */ | 31 /** Same as AddRefVar for Resources. */ |
29 void (*AddRefResource)(PP_Resource resource); | 32 void (*AddRefResource)(PP_Resource resource); |
30 | 33 |
31 /** Same as ReleaseVar for Resources. */ | 34 /** Same as ReleaseVar for Resources. */ |
32 void (*ReleaseResource)(PP_Resource resource); | 35 void (*ReleaseResource)(PP_Resource resource); |
33 | 36 |
34 /** | 37 /** |
35 * Allocate memory. | 38 * Allocate memory. |
36 * | 39 * |
37 * @return NULL If the allocation fails. | 40 * @return NULL If the allocation fails. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 int32_t result); | 81 int32_t result); |
79 | 82 |
80 /** | 83 /** |
81 * Returns true if the current thread is the main pepper thread. | 84 * Returns true if the current thread is the main pepper thread. |
82 * | 85 * |
83 * This is useful for implementing sanity checks, and deciding if dispatching | 86 * This is useful for implementing sanity checks, and deciding if dispatching |
84 * via CallOnMainThread() is required. | 87 * via CallOnMainThread() is required. |
85 */ | 88 */ |
86 PP_Bool (*IsMainThread)(); | 89 PP_Bool (*IsMainThread)(); |
87 }; | 90 }; |
88 | |
89 /** | 91 /** |
90 * @} | 92 * @} |
91 * End addtogroup PPB | |
92 */ | 93 */ |
94 | |
95 | |
93 #endif /* PPAPI_C_DEV_PPB_CORE_DEV_H_ */ | 96 #endif /* PPAPI_C_DEV_PPB_CORE_DEV_H_ */ |
94 | 97 |
OLD | NEW |