Repository: guacamole-client
Updated Branches:
  refs/heads/master 8a5645e90 -> ef568fb9f


GUACAMOLE-629: Add support for creating argument value streams using the "argv" 
instruction.


Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/75805e4c
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/75805e4c
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/75805e4c

Branch: refs/heads/master
Commit: 75805e4cab5a56f61a9df588f1ab4f892285fe1e
Parents: 0f93e7f
Author: Michael Jumper <mjum...@apache.org>
Authored: Mon Sep 24 01:33:11 2018 -0700
Committer: Michael Jumper <mjum...@apache.org>
Committed: Tue Sep 25 13:01:15 2018 -0700

----------------------------------------------------------------------
 .../src/main/webapp/modules/Client.js           | 25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/75805e4c/guacamole-common-js/src/main/webapp/modules/Client.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/Client.js 
b/guacamole-common-js/src/main/webapp/modules/Client.js
index 85e9346..e947b70 100644
--- a/guacamole-common-js/src/main/webapp/modules/Client.js
+++ b/guacamole-common-js/src/main/webapp/modules/Client.js
@@ -448,6 +448,31 @@ Guacamole.Client = function(tunnel) {
     };
 
     /**
+     * Opens a new argument value stream for writing, having the given
+     * parameter name and mimetype, requesting that the connection parameter
+     * with the given name be updated to the value described by the contents
+     * of the following stream. The instruction necessary to create this stream
+     * will automatically be sent.
+     *
+     * @param {String} mimetype
+     *     The mimetype of the data being sent.
+     *
+     * @param {String} name
+     *     The name of the connection parameter to attempt to update.
+     *
+     * @return {Guacamole.OutputStream}
+     *     The created argument value stream.
+     */
+    this.createArgumentValueStream = function 
createArgumentValueStream(mimetype, name) {
+
+        // Allocate and associate stream with argument value metadata
+        var stream = guac_client.createOutputStream();
+        tunnel.sendMessage("argv", stream.index, mimetype, name);
+        return stream;
+
+    };
+
+    /**
      * Creates a new output stream associated with the given object and having
      * the given mimetype and name. The legality of a mimetype and name is
      * dictated by the object itself. The instruction necessary to create this

Reply via email to