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

Unified Diff: src/public/nacl_app.h

Issue 153453002: Expose NaClAppSetDesc() to Chromium for use at startup (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Rebase and fix Created 6 years, 10 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
« no previous file with comments | « src/public/chrome_main.h ('k') | src/trusted/service_runtime/sel_ldr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/public/nacl_app.h
diff --git a/src/public/nacl_app.h b/src/public/nacl_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..e61fc312e5ea79dd9efff67832e41d51a82d39d8
--- /dev/null
+++ b/src/public/nacl_app.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2014 The Native Client 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 NATIVE_CLIENT_SRC_PUBLIC_NACL_APP_H_
+#define NATIVE_CLIENT_SRC_PUBLIC_NACL_APP_H_
+
+#include "native_client/src/include/nacl_base.h"
+
+EXTERN_C_BEGIN
+
+struct NaClApp;
+struct NaClDesc;
+
+/* Creates and returns a newly-initialized NaClApp. */
+struct NaClApp *NaClAppCreate(void);
+
+/*
+ * Sets entry number |fd| in the NaClApp's descriptor table to |desc|,
+ * removing any existing entry under |fd|. Note that this takes
+ * ownership of |desc|.
+ */
+void NaClAppSetDesc(struct NaClApp *nap, int fd, struct NaClDesc *desc);
+
+EXTERN_C_END
+
+#endif
« no previous file with comments | « src/public/chrome_main.h ('k') | src/trusted/service_runtime/sel_ldr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698