| Index: native_client_sdk/src/libraries/ppapi_simple/ppapi_simple_main.cc
|
| diff --git a/native_client_sdk/src/libraries/ppapi_simple/ppapi_simple_main.cc b/native_client_sdk/src/libraries/ppapi_simple/ppapi_simple_main.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1c5b7b27747778f433101c3dd7dd27081b284cf1
|
| --- /dev/null
|
| +++ b/native_client_sdk/src/libraries/ppapi_simple/ppapi_simple_main.cc
|
| @@ -0,0 +1,17 @@
|
| +/* 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.
|
| + */
|
| +
|
| +#include "ppapi/c/pp_instance.h"
|
| +#include "ppapi/c/pp_module.h"
|
| +
|
| +#include "ppapi_simple/ppapi_simple_instance.h"
|
| +#include "ppapi_simple/ppapi_simple_main.h"
|
| +
|
| +
|
| +void* PSCreateMain(PP_Instance inst, PSMainFunc_t func, const char* argv[]) {
|
| + PSInstance* pInst = new PSInstance(inst, argv);
|
| + pInst->SetMain(func);
|
| + return pInst;
|
| +}
|
|
|