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

Unified Diff: src/untrusted/irt/irt_dev.h

Issue 883393005: Add IRT interface for PNaCl's sandboxed linker to use to talk to Chromium (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Cleanup Created 5 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/untrusted/irt/irt.gyp ('k') | src/untrusted/irt/irt_interfaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/irt/irt_dev.h
diff --git a/src/untrusted/irt/irt_dev.h b/src/untrusted/irt/irt_dev.h
index 6758fa7e0dcba70f1af07c938d6aaea562ec22e6..8a6f78300f4cb35b3375726457f7aeb3c7dbc222 100644
--- a/src/untrusted/irt/irt_dev.h
+++ b/src/untrusted/irt/irt_dev.h
@@ -118,6 +118,26 @@ struct nacl_irt_dev_getpid {
int (*getpid)(int *pid);
};
+/*
+ * This is an internal interface, for use by PNaCl's sandboxed linker for
+ * communicating with the browser.
+ *
+ * serve_link_request(func) waits for a request via IPC, and then calls
+ * func(), on the same thread.
+ *
+ * |nexe_fd| is a writable FD for the linker to write its output to.
+ * |obj_file_fds| is an array of readable FDs (of length
+ * |obj_file_fd_count|) of input object files. func() returns zero on
+ * success or a non-zero value on error.
+ */
+#define NACL_IRT_PRIVATE_PNACL_TRANSLATOR_LINK_v0_1 \
+ "nacl-irt-private-pnacl-translator-link-0.1"
+struct nacl_irt_private_pnacl_translator_link {
+ void (*serve_link_request)(int (*func)(int nexe_fd,
+ const int *obj_file_fds,
+ int obj_file_fd_count));
+};
+
#if defined(__cplusplus)
}
#endif
« no previous file with comments | « src/untrusted/irt/irt.gyp ('k') | src/untrusted/irt/irt_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698