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

Unified Diff: ppapi/native_client/src/untrusted/irt_stub/plugin_main_irt.c

Issue 10914053: Relocating files in the nacl repo that belong in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 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: ppapi/native_client/src/untrusted/irt_stub/plugin_main_irt.c
diff --git a/ppapi/native_client/src/untrusted/irt_stub/plugin_main_irt.c b/ppapi/native_client/src/untrusted/irt_stub/plugin_main_irt.c
new file mode 100644
index 0000000000000000000000000000000000000000..95f9c5d719772a05b37a15ae56dae35c4f58b6ca
--- /dev/null
+++ b/ppapi/native_client/src/untrusted/irt_stub/plugin_main_irt.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2011 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 "native_client/src/shared/ppapi_proxy/ppruntime.h"
+
+/*
+ * An application that doesn't define its own main but links in -lppapi
+ * gets this one. A plugin may instead have its own main that calls
+ * PpapiPluginMain (or PpapiPluginStart) after doing some other setup.
+ */
+int main(void) {
+ return PpapiPluginMain();
+}
« no previous file with comments | « ppapi/native_client/src/untrusted/irt_stub/nacl.scons ('k') | ppapi/native_client/src/untrusted/irt_stub/ppapi_plugin_main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698