client, protocol-native: Use macros for protocol version/flag access

This makes it easier to read and cleaner in general.
This commit is contained in:
Arun Raghavan 2016-04-25 18:12:39 +05:30 committed by Arun Raghavan
parent 8887f256e0
commit 7ac5390042
3 changed files with 18 additions and 12 deletions

View file

@ -49,6 +49,12 @@
#define DEFAULT_TIMEOUT (30)
#define PA_PROTOCOL_FLAG_MASK 0xFFFF0000U
#define PA_PROTOCOL_VERSION_MASK 0x0000FFFFU
#define PA_PROTOCOL_FLAG_SHM 0x80000000U
#define PA_PROTOCOL_FLAG_MEMFD 0x40000000U
struct pa_context {
PA_REFCNT_DECLARE;