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

Unified Diff: ppapi/native_client/src/untrusted/irt_stub/ppapi_plugin_main.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/ppapi_plugin_main.c
diff --git a/ppapi/native_client/src/untrusted/irt_stub/ppapi_plugin_main.c b/ppapi/native_client/src/untrusted/irt_stub/ppapi_plugin_main.c
new file mode 100644
index 0000000000000000000000000000000000000000..acc6de79deade7932bd12112425346dfd5190143
--- /dev/null
+++ b/ppapi/native_client/src/untrusted/irt_stub/ppapi_plugin_main.c
@@ -0,0 +1,24 @@
+/*
+ * 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/untrusted/irt_stub/ppapi_start.h"
+
+/*
+ * These are dangling references to functions that the application must define.
+ */
+static const struct PP_StartFunctions ppapi_app_start_callbacks = {
+ PPP_InitializeModule,
+ PPP_ShutdownModule,
+ PPP_GetInterface
+};
+
+/*
+ * The application's main (or the one supplied in this library) calls this
+ * to start the PPAPI world.
+ */
+int PpapiPluginMain(void) {
+ return PpapiPluginStart(&ppapi_app_start_callbacks);
+}

Powered by Google App Engine
This is Rietveld 408576698