{"action":"created","comment":{"url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/comments/54978550","id":54978550,"diff_hunk":"@@ -0,0 +1,215 @@\n+/*\n+ * Copyright (C) 2014 Glyptodon LLC\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+\n+\n+#ifndef __GUAC_VNC_SETTINGS_H\n+#define __GUAC_VNC_SETTINGS_H\n+\n+#include \"config.h\"\n+\n+#include <stdbool.h>\n+\n+/**\n+ * VNC-specific client data.\n+ */\n+typedef struct guac_vnc_settings {\n+\n+    /**\n+     * The hostname of the VNC server (or repeater) to connect to.\n+     */\n+    char* hostname;\n+\n+    /**\n+     * The port of the VNC server (or repeater) to connect to.\n+     */\n+    int port;\n+\n+    /**\n+     * The password given in the arguments.\n+     */\n+    char* password;\n+\n+    /**\n+     * Space-separated list of encodings to use within the VNC session.\n+     */\n+    char* encodings;\n+\n+    /**\n+     * Whether the red and blue components of each color should be swapped.\n+     * This is mainly used for VNC servers that do not properly handle\n+     * colors.\n+     */\n+    bool swap_red_blue;\n+\n+    /**\n+     * The color depth to request, in bits.\n+     */\n+    int color_depth;\n+\n+    /**\n+     * Whether this connection is read-only, and user input should be dropped.\n+     */\n+    bool read_only;\n+\n+#ifdef ENABLE_VNC_REPEATER\n+    /**\n+     * The VNC host to connect to, if using a repeater.\n+     */\n+    char* dest_host;\n+\n+    /**\n+     * The VNC port to connect to, if using a repeater.\n+     */\n+    int dest_port;\n+#endif\n+\n+#ifdef ENABLE_VNC_LISTEN\n+    /**\n+     * Whether not actually connecting to a VNC server, but rather listening\n+     * for a connection from the VNC server (reverse connection).\n+     */\n+    bool reverse_connect;\n+\n+    /**\n+     * The maximum amount of time to wait when listening for connections, in\n+     * milliseconds.\n+     */\n+    int listen_timeout;\n+#endif\n+\n+    /**\n+     * Whether the cursor should be rendered on the server (remote) or on the\n+     * client (local).\n+     */\n+    int remote_cursor;","path":"src/protocols/vnc/settings.h","position":103,"original_position":103,"commit_id":"38f1e87334388f5c795e2148fcb1d6cf519b2c52","original_commit_id":"38f1e87334388f5c795e2148fcb1d6cf519b2c52","user":{"login":"mike-jumper","id":4632905,"avatar_url":"https://avatars.githubusercontent.com/u/4632905?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-jumper","html_url":"https://github.com/mike-jumper","followers_url":"https://api.github.com/users/mike-jumper/followers","following_url":"https://api.github.com/users/mike-jumper/following{/other_user}","gists_url":"https://api.github.com/users/mike-jumper/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-jumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-jumper/subscriptions","organizations_url":"https://api.github.com/users/mike-jumper/orgs","repos_url":"https://api.github.com/users/mike-jumper/repos","events_url":"https://api.github.com/users/mike-jumper/events{/privacy}","received_events_url":"https://api.github.com/users/mike-jumper/received_events","type":"User","site_admin":false},"body":"It should be, yeah.","created_at":"2016-03-04T01:27:20Z","updated_at":"2016-03-04T01:27:20Z","html_url":"https://github.com/glyptodon/guacamole-server/pull/116#discussion_r54978550","pull_request_url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/comments/54978550"},"html":{"href":"https://github.com/glyptodon/guacamole-server/pull/116#discussion_r54978550"},"pull_request":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116","id":61628555,"html_url":"https://github.com/glyptodon/guacamole-server/pull/116","diff_url":"https://github.com/glyptodon/guacamole-server/pull/116.diff","patch_url":"https://github.com/glyptodon/guacamole-server/pull/116.patch","issue_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues/116","number":116,"state":"open","locked":false,"title":"GUAC-1389: Add screen sharing support to VNC.","user":{"login":"mike-jumper","id":4632905,"avatar_url":"https://avatars.githubusercontent.com/u/4632905?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-jumper","html_url":"https://github.com/mike-jumper","followers_url":"https://api.github.com/users/mike-jumper/followers","following_url":"https://api.github.com/users/mike-jumper/following{/other_user}","gists_url":"https://api.github.com/users/mike-jumper/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-jumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-jumper/subscriptions","organizations_url":"https://api.github.com/users/mike-jumper/orgs","repos_url":"https://api.github.com/users/mike-jumper/repos","events_url":"https://api.github.com/users/mike-jumper/events{/privacy}","received_events_url":"https://api.github.com/users/mike-jumper/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-03T21:31:53Z","updated_at":"2016-03-04T01:27:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"102d5141ad316cc02695d8c67e196bf8e1f9b3ed","assignee":{"login":"jmuehlner","id":4633119,"avatar_url":"https://avatars.githubusercontent.com/u/4633119?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuehlner","html_url":"https://github.com/jmuehlner","followers_url":"https://api.github.com/users/jmuehlner/followers","following_url":"https://api.github.com/users/jmuehlner/following{/other_user}","gists_url":"https://api.github.com/users/jmuehlner/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuehlner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuehlner/subscriptions","organizations_url":"https://api.github.com/users/jmuehlner/orgs","repos_url":"https://api.github.com/users/jmuehlner/repos","events_url":"https://api.github.com/users/jmuehlner/events{/privacy}","received_events_url":"https://api.github.com/users/jmuehlner/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116/commits","review_comments_url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116/comments","review_comment_url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues/116/comments","statuses_url":"https://api.github.com/repos/glyptodon/guacamole-server/statuses/38f1e87334388f5c795e2148fcb1d6cf519b2c52","head":{"label":"glyptodon:fake-merge-screen-sharing-005-vnc","ref":"fake-merge-screen-sharing-005-vnc","sha":"38f1e87334388f5c795e2148fcb1d6cf519b2c52","user":{"login":"glyptodon","id":4632960,"avatar_url":"https://avatars.githubusercontent.com/u/4632960?v=3","gravatar_id":"","url":"https://api.github.com/users/glyptodon","html_url":"https://github.com/glyptodon","followers_url":"https://api.github.com/users/glyptodon/followers","following_url":"https://api.github.com/users/glyptodon/following{/other_user}","gists_url":"https://api.github.com/users/glyptodon/gists{/gist_id}","starred_url":"https://api.github.com/users/glyptodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyptodon/subscriptions","organizations_url":"https://api.github.com/users/glyptodon/orgs","repos_url":"https://api.github.com/users/glyptodon/repos","events_url":"https://api.github.com/users/glyptodon/events{/privacy}","received_events_url":"https://api.github.com/users/glyptodon/received_events","type":"Organization","site_admin":false},"repo":{"id":10532458,"name":"guacamole-server","full_name":"glyptodon/guacamole-server","owner":{"login":"glyptodon","id":4632960,"avatar_url":"https://avatars.githubusercontent.com/u/4632960?v=3","gravatar_id":"","url":"https://api.github.com/users/glyptodon","html_url":"https://github.com/glyptodon","followers_url":"https://api.github.com/users/glyptodon/followers","following_url":"https://api.github.com/users/glyptodon/following{/other_user}","gists_url":"https://api.github.com/users/glyptodon/gists{/gist_id}","starred_url":"https://api.github.com/users/glyptodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyptodon/subscriptions","organizations_url":"https://api.github.com/users/glyptodon/orgs","repos_url":"https://api.github.com/users/glyptodon/repos","events_url":"https://api.github.com/users/glyptodon/events{/privacy}","received_events_url":"https://api.github.com/users/glyptodon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glyptodon/guacamole-server","description":"The server-side, native components that form the Guacamole proxy.","fork":false,"url":"https://api.github.com/repos/glyptodon/guacamole-server","forks_url":"https://api.github.com/repos/glyptodon/guacamole-server/forks","keys_url":"https://api.github.com/repos/glyptodon/guacamole-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glyptodon/guacamole-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glyptodon/guacamole-server/teams","hooks_url":"https://api.github.com/repos/glyptodon/guacamole-server/hooks","issue_events_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues/events{/number}","events_url":"https://api.github.com/repos/glyptodon/guacamole-server/events","assignees_url":"https://api.github.com/repos/glyptodon/guacamole-server/assignees{/user}","branches_url":"https://api.github.com/repos/glyptodon/guacamole-server/branches{/branch}","tags_url":"https://api.github.com/repos/glyptodon/guacamole-server/tags","blobs_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glyptodon/guacamole-server/statuses/{sha}","languages_url":"https://api.github.com/repos/glyptodon/guacamole-server/languages","stargazers_url":"https://api.github.com/repos/glyptodon/guacamole-server/stargazers","contributors_url":"https://api.github.com/repos/glyptodon/guacamole-server/contributors","subscribers_url":"https://api.github.com/repos/glyptodon/guacamole-server/subscribers","subscription_url":"https://api.github.com/repos/glyptodon/guacamole-server/subscription","commits_url":"https://api.github.com/repos/glyptodon/guacamole-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/glyptodon/guacamole-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/glyptodon/guacamole-server/contents/{+path}","compare_url":"https://api.github.com/repos/glyptodon/guacamole-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glyptodon/guacamole-server/merges","archive_url":"https://api.github.com/repos/glyptodon/guacamole-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glyptodon/guacamole-server/downloads","issues_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues{/number}","pulls_url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls{/number}","milestones_url":"https://api.github.com/repos/glyptodon/guacamole-server/milestones{/number}","notifications_url":"https://api.github.com/repos/glyptodon/guacamole-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glyptodon/guacamole-server/labels{/name}","releases_url":"https://api.github.com/repos/glyptodon/guacamole-server/releases{/id}","deployments_url":"https://api.github.com/repos/glyptodon/guacamole-server/deployments","created_at":"2013-06-06T17:40:59Z","updated_at":"2016-03-03T13:55:55Z","pushed_at":"2016-03-04T01:00:19Z","git_url":"git://github.com/glyptodon/guacamole-server.git","ssh_url":"git@github.com:glyptodon/guacamole-server.git","clone_url":"https://github.com/glyptodon/guacamole-server.git","svn_url":"https://github.com/glyptodon/guacamole-server","homepage":"http://guac-dev.org/","size":7186,"stargazers_count":825,"watchers_count":825,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":131,"mirror_url":null,"open_issues_count":3,"forks":131,"open_issues":3,"watchers":825,"default_branch":"master"}},"base":{"label":"glyptodon:master","ref":"master","sha":"41a21c9b0c5c708e6f43c7a155262f78c3156241","user":{"login":"glyptodon","id":4632960,"avatar_url":"https://avatars.githubusercontent.com/u/4632960?v=3","gravatar_id":"","url":"https://api.github.com/users/glyptodon","html_url":"https://github.com/glyptodon","followers_url":"https://api.github.com/users/glyptodon/followers","following_url":"https://api.github.com/users/glyptodon/following{/other_user}","gists_url":"https://api.github.com/users/glyptodon/gists{/gist_id}","starred_url":"https://api.github.com/users/glyptodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyptodon/subscriptions","organizations_url":"https://api.github.com/users/glyptodon/orgs","repos_url":"https://api.github.com/users/glyptodon/repos","events_url":"https://api.github.com/users/glyptodon/events{/privacy}","received_events_url":"https://api.github.com/users/glyptodon/received_events","type":"Organization","site_admin":false},"repo":{"id":10532458,"name":"guacamole-server","full_name":"glyptodon/guacamole-server","owner":{"login":"glyptodon","id":4632960,"avatar_url":"https://avatars.githubusercontent.com/u/4632960?v=3","gravatar_id":"","url":"https://api.github.com/users/glyptodon","html_url":"https://github.com/glyptodon","followers_url":"https://api.github.com/users/glyptodon/followers","following_url":"https://api.github.com/users/glyptodon/following{/other_user}","gists_url":"https://api.github.com/users/glyptodon/gists{/gist_id}","starred_url":"https://api.github.com/users/glyptodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyptodon/subscriptions","organizations_url":"https://api.github.com/users/glyptodon/orgs","repos_url":"https://api.github.com/users/glyptodon/repos","events_url":"https://api.github.com/users/glyptodon/events{/privacy}","received_events_url":"https://api.github.com/users/glyptodon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glyptodon/guacamole-server","description":"The server-side, native components that form the Guacamole proxy.","fork":false,"url":"https://api.github.com/repos/glyptodon/guacamole-server","forks_url":"https://api.github.com/repos/glyptodon/guacamole-server/forks","keys_url":"https://api.github.com/repos/glyptodon/guacamole-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glyptodon/guacamole-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glyptodon/guacamole-server/teams","hooks_url":"https://api.github.com/repos/glyptodon/guacamole-server/hooks","issue_events_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues/events{/number}","events_url":"https://api.github.com/repos/glyptodon/guacamole-server/events","assignees_url":"https://api.github.com/repos/glyptodon/guacamole-server/assignees{/user}","branches_url":"https://api.github.com/repos/glyptodon/guacamole-server/branches{/branch}","tags_url":"https://api.github.com/repos/glyptodon/guacamole-server/tags","blobs_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glyptodon/guacamole-server/statuses/{sha}","languages_url":"https://api.github.com/repos/glyptodon/guacamole-server/languages","stargazers_url":"https://api.github.com/repos/glyptodon/guacamole-server/stargazers","contributors_url":"https://api.github.com/repos/glyptodon/guacamole-server/contributors","subscribers_url":"https://api.github.com/repos/glyptodon/guacamole-server/subscribers","subscription_url":"https://api.github.com/repos/glyptodon/guacamole-server/subscription","commits_url":"https://api.github.com/repos/glyptodon/guacamole-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/glyptodon/guacamole-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/glyptodon/guacamole-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/glyptodon/guacamole-server/contents/{+path}","compare_url":"https://api.github.com/repos/glyptodon/guacamole-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glyptodon/guacamole-server/merges","archive_url":"https://api.github.com/repos/glyptodon/guacamole-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glyptodon/guacamole-server/downloads","issues_url":"https://api.github.com/repos/glyptodon/guacamole-server/issues{/number}","pulls_url":"https://api.github.com/repos/glyptodon/guacamole-server/pulls{/number}","milestones_url":"https://api.github.com/repos/glyptodon/guacamole-server/milestones{/number}","notifications_url":"https://api.github.com/repos/glyptodon/guacamole-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glyptodon/guacamole-server/labels{/name}","releases_url":"https://api.github.com/repos/glyptodon/guacamole-server/releases{/id}","deployments_url":"https://api.github.com/repos/glyptodon/guacamole-server/deployments","created_at":"2013-06-06T17:40:59Z","updated_at":"2016-03-03T13:55:55Z","pushed_at":"2016-03-04T01:00:19Z","git_url":"git://github.com/glyptodon/guacamole-server.git","ssh_url":"git@github.com:glyptodon/guacamole-server.git","clone_url":"https://github.com/glyptodon/guacamole-server.git","svn_url":"https://github.com/glyptodon/guacamole-server","homepage":"http://guac-dev.org/","size":7186,"stargazers_count":825,"watchers_count":825,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":131,"mirror_url":null,"open_issues_count":3,"forks":131,"open_issues":3,"watchers":825,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116"},"html":{"href":"https://github.com/glyptodon/guacamole-server/pull/116"},"issue":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/issues/116"},"comments":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/glyptodon/guacamole-server/statuses/38f1e87334388f5c795e2148fcb1d6cf519b2c52"}}}}