summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-18 19:47:49 +0100
committerDavid Robillard <d@drobilla.net>2017-02-18 19:47:49 +0100
commitb9717ab942b38f023cee99b3c108514a651b2b51 (patch)
tree5af363c40dd1c014133778d38f4a3f8747e55e05
parentf62a6d15cb63ffe266ec3cd133245df8947191b2 (diff)
downloadsratom-b9717ab942b38f023cee99b3c108514a651b2b51.tar.gz
sratom-b9717ab942b38f023cee99b3c108514a651b2b51.tar.bz2
sratom-b9717ab942b38f023cee99b3c108514a651b2b51.zip
Improve struct packing
-rw-r--r--src/sratom.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 0ea7fbb..3537587 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -43,19 +43,18 @@ typedef enum {
struct SratomImpl {
LV2_URID_Map* map;
LV2_Atom_Forge forge;
- LV2_URID atom_Event;
- LV2_URID atom_frameTime;
- LV2_URID atom_beatTime;
- LV2_URID midi_MidiEvent;
- unsigned next_id;
SerdEnv* env;
SerdNode base_uri;
SerdURI base;
SerdStatementSink write_statement;
SerdEndSink end_anon;
void* handle;
+ LV2_URID atom_Event;
+ LV2_URID atom_frameTime;
+ LV2_URID atom_beatTime;
+ LV2_URID midi_MidiEvent;
+ unsigned next_id;
SratomObjectMode object_mode;
- bool pretty_numbers;
uint32_t seq_unit;
struct {
SordNode* atom_childType;
@@ -67,6 +66,8 @@ struct SratomImpl {
SordNode* rdf_value;
SordNode* xsd_base64Binary;
} nodes;
+
+ bool pretty_numbers;
};
static void