[Spice-devel] [PATCH 1/2] Mark VD_AGENT_CLIPBOARD_MAX as deprecated
Marc-André Lureau
marcandre.lureau at gmail.com
Wed Nov 6 12:07:21 PST 2013
There is no use for those 2 values, and the default limit would be quite
wrong. Let's just but then in a deprecated block. If someone really uses
them, they will have to add -DSPICE_DEPRECATED, or just fix their code.
---
spice/vd_agent.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index c331d84..6d1555b 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -56,8 +56,11 @@ typedef struct SPICE_ATTR_PACKED VDAgentMessage {
#define VD_AGENT_PROTOCOL 1
#define VD_AGENT_MAX_DATA_SIZE 2048
+
+#ifdef SPICE_DEPRECATED
#define VD_AGENT_CLIPBOARD_MAX_SIZE_DEFAULT 1024
#define VD_AGENT_CLIPBOARD_MAX_SIZE_ENV "SPICE_CLIPBOARD_MAX_SIZE"
+#endif
enum {
VD_AGENT_MOUSE_STATE = 1,
--
1.8.3.1
More information about the Spice-devel
mailing list