Index: src/untrusted/irt/irt_interfaces.h |
diff --git a/src/untrusted/irt/irt_interfaces.h b/src/untrusted/irt/irt_interfaces.h |
index 91c464c0d23bf873bf0f411cb8e22a3f776e8501..0336078b0c7430ad5e50078ae13dcb806f134d06 100644 |
--- a/src/untrusted/irt/irt_interfaces.h |
+++ b/src/untrusted/irt/irt_interfaces.h |
@@ -8,6 +8,24 @@ |
#include <stddef.h> |
+#include "native_client/src/untrusted/irt/irt.h" |
+ |
+/* |
+struct nacl_irt_module { |
+ void (*module_init)(void); |
+ void (*module_fini)(void); |
+}; |
+ |
+extern __attribute__((weak)) struct nacl_irt_module nacl_irt_array[]; |
+ |
+typedef TYPE_nacl_irt_query (*TYPE_nacl_irt_module_ctor)( |
+ TYPE_nacl_irt_query irt_query); |
+ |
+extern int nacl_irt_module_register(TYPE_nacl_irt_module_ctor ctor); |
+extern int nacl_irt_interface_set(const char *interface_ident, |
+ void *table, size_t tablesize, void *old_table); |
+*/ |
+ |
extern size_t nacl_irt_interface(const char *interface_ident, |
void *table, size_t tablesize); |
@@ -33,5 +51,6 @@ extern const struct nacl_irt_clock nacl_irt_clock; |
extern const struct nacl_irt_dev_getpid nacl_irt_dev_getpid; |
extern const struct nacl_irt_exception_handling nacl_irt_exception_handling; |
extern const struct nacl_irt_dev_list_mappings nacl_irt_dev_list_mappings; |
+extern const struct nacl_irt_instance nacl_irt_instance; |
#endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_INTERFACES_H_ */ |