Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Evangelos Ribeiro Tzaras
chatty
Commits
6edd319f
Commit
6edd319f
authored
Jul 07, 2021
by
Mohammed Sadiq
Browse files
matrix-api: Use single bit variables for booleans
Which uses less memory
parent
e94b8811
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/matrix/matrix-api.c
View file @
6edd319f
...
...
@@ -68,13 +68,13 @@ struct _MatrixApi
/* for sending events, incremented for each event */
int
event_id
;
g
boolean
full_state_loaded
;
g
boolean
is_sync
;
g
uint
full_state_loaded
:
1
;
g
uint
is_sync
:
1
;
/* Set when error occurs with sync enabled */
g
boolean
sync_failed
;
g
boolean
homeserver_verified
;
g
boolean
login_success
;
g
boolean
room_list_loaded
;
g
uint
sync_failed
:
1
;
g
uint
homeserver_verified
:
1
;
g
uint
login_success
:
1
;
g
uint
room_list_loaded
:
1
;
guint
resync_id
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment