summaryrefslogtreecommitdiff
path: root/src/utils/process.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/process.h')
-rw-r--r--src/utils/process.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/process.h b/src/utils/process.h
index 5ceddd032..44c1d2286 100644
--- a/src/utils/process.h
+++ b/src/utils/process.h
@@ -34,4 +34,16 @@ bool openBrowser(std::string url);
void setPriority(const bool big);
+#ifdef __native_client__
+
+typedef struct _NaclMessageHandle NaclMessageHandle;
+
+void naclPostMessage(const std::string &type, const std::string &message);
+
+NaclMessageHandle *naclRegisterMessageHandler(const std::string &type);
+void naclUnregisterMessageHandler(NaclMessageHandle *handle);
+std::string naclWaitForMessage(NaclMessageHandle *handle);
+
+#endif
+
#endif // UTILS_PROCESS_H