summaryrefslogtreecommitdiffstats
path: root/ppapi/nacl_irt/plugin_main.h
blob: 75fc1124affe4959cf580d6d8c281aaec2986a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2014 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_NACL_IRT_PLUGIN_MAIN_H_
#define PPAPI_NACL_IRT_PLUGIN_MAIN_H_

#include "ppapi/nacl_irt/public/irt_ppapi.h"
#include "ppapi/proxy/ppapi_proxy_export.h"

#ifdef __cplusplus
extern "C" {
#endif

// The entry point for the main thread of the PPAPI plugin process.
PPAPI_PROXY_EXPORT int PpapiPluginMain(void);

PPAPI_PROXY_EXPORT void PpapiPluginRegisterThreadCreator(
    const struct PP_ThreadFunctions* new_funcs);

#ifdef __cplusplus
}
#endif

#endif  // PPAPI_NACL_IRT_PLUGIN_MAIN_H_