[Spice-commits] server/agent-msg-filter.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Feb 11 15:17:26 UTC 2019


 server/agent-msg-filter.h |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 0a415abf3541c2b752026d68d294d4c73104bbdc
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sat Feb 9 20:19:12 2019 +0000

    agent-msg-filter: Add some comments to AgentMsgFilter structure
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>

diff --git a/server/agent-msg-filter.h b/server/agent-msg-filter.h
index bd124eac..9b42f89d 100644
--- a/server/agent-msg-filter.h
+++ b/server/agent-msg-filter.h
@@ -33,11 +33,18 @@ typedef enum {
 } AgentMsgFilterResult;
 
 typedef struct AgentMsgFilter {
+    // bytes of message we still need to read
     int msg_data_to_read;
+    // status of current message, we need to store in case the same message is split into multiple
+    // chunks
     AgentMsgFilterResult result;
     gboolean copy_paste_enabled;
     gboolean file_xfer_enabled;
+    // device should pass monitor information to reds instead of passing to agent,
+    // used for messages from the guest to the agent
     gboolean use_client_monitors_config;
+    // discard all messages, used for example when device is disabled to discard
+    // pending data
     gboolean discard_all;
 } AgentMsgFilter;
 


More information about the Spice-commits mailing list