Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: native_client_sdk/src/libraries/ppapi_simple/ps_main.cc

Issue 15011003: ppapi_simple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/ppapi_simple/ps_main.cc
diff --git a/native_client_sdk/src/libraries/ppapi_simple/ps_main.cc b/native_client_sdk/src/libraries/ppapi_simple/ps_main.cc
new file mode 100644
index 0000000000000000000000000000000000000000..302aeaf44b11b894ced1d330be7e1cea496a4e5e
--- /dev/null
+++ b/native_client_sdk/src/libraries/ppapi_simple/ps_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/ps_instance.h"
+#include "ppapi_simple/ps_main.h"
+
+
+void* PSMainCreate(PP_Instance inst, PSMainFunc_t func, const char* argv[]) {
+ PSInstance* pInst = new PSInstance(inst, argv);
+ pInst->SetMain(func);
+ return pInst;
+}
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_simple/ps_main.h ('k') | native_client_sdk/src/libraries/utils/thread_safe_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698