From b9bfbd2f7bc14274bb84364e9fd75e1448e3eaf5 Mon Sep 17 00:00:00 2001 From: Pavel Grunt Date: Tue, 28 Feb 2017 14:58:59 +0100 Subject: [PATCH] agent: Add macro for clearing capability Related: https://bugzilla.redhat.com/show_bug.cgi?id=1373725 Acked-by: Frediano Ziglio --- spice/vd_agent.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spice/vd_agent.h b/spice/vd_agent.h index 061ca30..779f4f3 100644 --- a/spice/vd_agent.h +++ b/spice/vd_agent.h @@ -268,6 +268,9 @@ typedef struct SPICE_ATTR_PACKED VDAgentAnnounceCapabilities { #define VD_AGENT_SET_CAPABILITY(caps, index) \ { (caps)[(index) / 32] |= (1 << ((index) % 32)); } +#define VD_AGENT_CLEAR_CAPABILITY(caps, index) \ + { (caps)[(index) / 32] &= ~(1 << ((index) % 32)); } + #include #endif /* _H_VD_AGENT */