agent: Add macro for clearing capability

Related:
https://bugzilla.redhat.com/show_bug.cgi?id=1373725

Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Pavel Grunt 2017-02-28 14:58:59 +01:00 committed by Frediano Ziglio
parent 5410de6407
commit b9bfbd2f7b

View File

@ -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 <spice/end-packed.h>
#endif /* _H_VD_AGENT */