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 |