Index: mojo/nacl/nonsfi/irt_mojo_nonsfi.h |
diff --git a/mojo/nacl/nonsfi/irt_mojo_nonsfi.h b/mojo/nacl/nonsfi/irt_mojo_nonsfi.h |
index 2895902882b46737ff58f4a8080ed35db5d59069..b4b5fbd7e4c29d6cf1fa0311538932122cde0dbe 100644 |
--- a/mojo/nacl/nonsfi/irt_mojo_nonsfi.h |
+++ b/mojo/nacl/nonsfi/irt_mojo_nonsfi.h |
@@ -5,14 +5,35 @@ |
#ifndef MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_ |
#define MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_ |
+#include <string> |
+ |
#include "mojo/public/c/system/functions.h" |
+#include "native_client/src/untrusted/irt/irt_dev.h" |
namespace nacl { |
+extern const struct nacl_irt_private_pnacl_translator_compile |
+ nacl_irt_private_pnacl_translator_compile; |
+extern const struct nacl_irt_private_pnacl_translator_link |
+ nacl_irt_private_pnacl_translator_link; |
+extern const struct nacl_irt_resource_open |
+ nacl_irt_resource_open; |
+ |
// Used to pass handle to application. If uncalled, |
// the handle defaults to MOJO_HANDLE_INVALID. |
void MojoSetInitialHandle(MojoHandle handle); |
+MojoResult MojoGetInitialHandle(MojoHandle* handle); |
+ |
+// Mechanism to control when nexes get access to the PNaCl translation |
+// IRT functions. |
+void MojoPnaclTranslatorEnable(); |
+ |
+// For interfaces like irt_resource_open, identify a root path |
+// which holds all relevant files. |
+void MojoSetBasePath(std::string base_path); |
+std::string MojoGetBasePath(); |
+ |
// IRT interface query function which may be passed to nacl_irt_nonsfi_entry. |
// Queries for a mojo interface, then for the irt core. |
size_t MojoIrtNonsfiQuery(const char* interface_ident, |