diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 16:16:50 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 16:16:50 +0000 |
commit | 1758e88fd909ea0ffd49621e8066ffad5627ffdf (patch) | |
tree | c304a5eed047cae5665f5af1739d84655fb5815d /ppapi/c/ppp.h | |
parent | e7d8b51953b7d3b2b8a0aba46132305b32f3efce (diff) | |
download | chromium_src-1758e88fd909ea0ffd49621e8066ffad5627ffdf.zip chromium_src-1758e88fd909ea0ffd49621e8066ffad5627ffdf.tar.gz chromium_src-1758e88fd909ea0ffd49621e8066ffad5627ffdf.tar.bz2 |
Move PPAPI into the Chrome repo. The old repo was
http://ppapi.googlecode.com/
TEST=none
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/ppp.h')
-rw-r--r-- | ppapi/c/ppp.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/ppapi/c/ppp.h b/ppapi/c/ppp.h new file mode 100644 index 0000000..67d66c3 --- /dev/null +++ b/ppapi/c/ppp.h @@ -0,0 +1,60 @@ +// Copyright (c) 2010 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. + +#ifndef PPAPI_C_PPP_H_ +#define PPAPI_C_PPP_H_ + +#include "ppapi/c/pp_module.h" +#include "ppapi/c/pp_stdint.h" +#include "ppapi/c/ppb.h" + +#if __GNUC__ >= 4 +#define PP_EXPORT __attribute__ ((visibility("default"))) +#elif defined(_MSC_VER) +#define PP_EXPORT __declspec(dllexport) +#endif + +/** + * @file + * Defines the API ... + * + * {PENDING: undefine PP_EXPORT?} + * @addtogroup PPP + * @{ + */ + +// We don't want name mangling for these external functions. We only need +// 'extern "C"' if we're compiling with a C++ compiler. +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Entrypoint for the module. + * + * Returns PP_OK on success, any other value on failure. Failure indicates to + * the browser that this plugin can not be used. In this case, the plugin will + * be unloaded and ShutdownModule will NOT be called. + */ +PP_EXPORT int32_t PPP_InitializeModule(PP_Module module, + PPB_GetInterface get_browser_interface); + +/** Called before the plugin module is unloaded. */ +PP_EXPORT void PPP_ShutdownModule(); + +/** + * Returns an interface pointer for the interface of the given name, or NULL + * if the interface is not supported. Interface names should be ASCII. + */ +PP_EXPORT const void* PPP_GetInterface(const char* interface_name); + +#ifdef __cplusplus +} // extern "C" +#endif + +/** + * @} + * End addtogroup PPP + */ +#endif // PPAPI_C_PPP_H_ |