mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
Turn flags into bitfields to reduce struct sizes
This commit is contained in:
parent
9cb4aaa921
commit
51f879cb32
@ -84,9 +84,9 @@ struct raop_session
|
|||||||
struct evrtsp_connection *ctrl;
|
struct evrtsp_connection *ctrl;
|
||||||
|
|
||||||
enum raop_session_state state;
|
enum raop_session_state state;
|
||||||
int req_in_flight;
|
unsigned req_in_flight:1;
|
||||||
int req_has_auth;
|
unsigned req_has_auth:1;
|
||||||
int encrypt;
|
unsigned encrypt:1;
|
||||||
|
|
||||||
int cseq;
|
int cseq;
|
||||||
char *session;
|
char *session;
|
||||||
|
@ -28,11 +28,11 @@ struct raop_device
|
|||||||
short v4_port;
|
short v4_port;
|
||||||
short v6_port;
|
short v6_port;
|
||||||
|
|
||||||
char selected;
|
unsigned selected:1;
|
||||||
char advertised;
|
unsigned advertised:1;
|
||||||
char encrypt;
|
unsigned encrypt:1;
|
||||||
|
|
||||||
char has_password;
|
unsigned has_password:1;
|
||||||
const char *password;
|
const char *password;
|
||||||
|
|
||||||
struct raop_session *session;
|
struct raop_session *session;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user