mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-08-08 02:07:30 +00:00
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:
parent
5410de6407
commit
b9bfbd2f7b
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user