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

Unified Diff: native_client_sdk/src/libraries/nacl_io/ioctl.h

Issue 242533005: [NaCl SDK] nacl_io: Add flow control the JavaScript pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: native_client_sdk/src/libraries/nacl_io/ioctl.h
diff --git a/native_client_sdk/src/libraries/nacl_io/ioctl.h b/native_client_sdk/src/libraries/nacl_io/ioctl.h
index e2b0ada77aeac7353f1e5e7d704ee47a6caa8b85..15cc467cebf028aae037667fb3e106305728e6e9 100644
--- a/native_client_sdk/src/libraries/nacl_io/ioctl.h
+++ b/native_client_sdk/src/libraries/nacl_io/ioctl.h
@@ -33,9 +33,23 @@
* unique prefix. Until a prefix is set on a given pipe any I/O operations
* will return EIO.
*/
-#define TIOCNACLPIPENAME 0xadcd04
+#define NACL_IOC_PIPE_SETNAME 0xadcd04
-typedef char* tioc_nacl_jspipe_name;
+/*
+ * Find out how much space is available in a nacl_io pipe.
+ * Argument type is "int*" which will be set to the amount of space in the
+ * pipe in bytes.
+ */
+#define NACL_IOC_PIPE_GETOSPACE 0xadcd06
+#define NACL_IOC_PIPE_GETISPACE 0xadcd07
+
+/*
+ * ioctl used to pass messages from JavaScript to a jspipe node.
+ * Argument type is "struct PP_Var*".
+ */
+#define NACL_IOC_HANDLEMESSAGE 0xadcd05
+
+typedef char* naclioc_jspipe_name;
struct tioc_nacl_input_string {
size_t length;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/fs_factory.h ('k') | native_client_sdk/src/libraries/nacl_io/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698