From: Max Kellermann Date: Fri, 17 Mar 2017 22:24:03 +0000 (+0100) Subject: mpdclient: reorder attributes for better packing X-Git-Tag: v0.26~50 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1d7e2d66836e3e17f236ceb6b1ee2f6c6ddf0d75;p=ncmpc.git mpdclient: reorder attributes for better packing --- diff --git a/src/mpdclient.h b/src/mpdclient.h index 1d4dbc9..5208815 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -14,33 +14,33 @@ struct mpdclient { struct mpd_connection *connection; - /** - * This attribute is incremented whenever the connection changes - * (i.e. on disconnection and (re-)connection). - */ - unsigned connection_id; - /** * Tracks idle events. It is automatically called by * mpdclient_get_connection() and mpdclient_put_connection(). */ struct mpd_glib_source *source; - /** - * This attribute is true when the connection is currently in - * "idle" mode, and the #mpd_glib_source waits for an event. - */ - bool idle; - struct mpd_status *status; const struct mpd_song *song; + /** + * This attribute is incremented whenever the connection changes + * (i.e. on disconnection and (re-)connection). + */ + unsigned connection_id; + int volume; /** * A bit mask of idle events occurred since the last update. */ enum mpd_idle events; + + /** + * This attribute is true when the connection is currently in + * "idle" mode, and the #mpd_glib_source waits for an event. + */ + bool idle; }; enum {