Chromium Code Reviews| Index: ppapi/c/ppp.h |
| diff --git a/ppapi/c/ppp.h b/ppapi/c/ppp.h |
| index cb36b109694c8bd285f0fa367beb8e2c3c5eb8a9..5cdaa6ebfc767d4d31921e281f18e1db55cfbd32 100644 |
| --- a/ppapi/c/ppp.h |
| +++ b/ppapi/c/ppp.h |
| @@ -1,14 +1,17 @@ |
| -/* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +/* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| */ |
| -/* From ppp.idl modified Mon Aug 8 06:47:44 2011. */ |
| +/* From ppp.idl modified Thu Apr 12 14:25:11 2012. */ |
| #ifndef PPAPI_C_PPP_H_ |
| #define PPAPI_C_PPP_H_ |
| #include "ppapi/c/pp_macros.h" |
| +#include "ppapi/c/pp_module.h" |
| +#include "ppapi/c/pp_stdint.h" |
| +#include "ppapi/c/ppb.h" |
| /** |
| * @file |
| @@ -127,5 +130,29 @@ PP_EXPORT const void* PPP_GetInterface(const char* interface_name); |
| } /* extern "C" */ |
| #endif |
| + |
| +/** |
| + * @addtogroup Typedefs |
| + * @{ |
| + */ |
| +/** |
| + * Defines the type of the <code>PPP_InitializeModule</code> function. |
| + */ |
| +typedef int32_t (*PP_InitializeModule_Func)(PP_Module module, |
| + PPB_GetInterface get_interface); |
|
viettrungluu
2012/04/12 22:14:07
Nit: Should you call this |get_browser_interface|
|
| + |
| +/** |
| + * Defines the type of the <code>PPP_ShutdownModule</code> function. |
|
viettrungluu
2012/04/12 22:14:07
PPP_GetInterface
|
| + */ |
| +typedef const void* (*PP_GetInterface_Func)(const char* interface_name); |
|
viettrungluu
2012/04/12 22:14:07
Nit: Keep the same order as the PPP_... declaratio
|
| + |
| +/** |
| + * Defines the type of the <code>PPP_ShutdownModule</code> function. |
| + */ |
| +typedef void (*PP_ShutdownModule_Func)(); |
| +/** |
| + * @} |
| + */ |
| + |
| #endif /* PPAPI_C_PPP_H_ */ |