commit | 5a82f4543228344223778d1f77ae1bf1cf3837b8 | [log] [tgz] |
---|---|---|
author | Emmanuele Bassi <ebassi@gnome.org> | Wed Jul 19 18:32:54 2017 +0100 |
committer | Emmanuele Bassi <ebassi@gnome.org> | Thu Jul 20 11:08:57 2017 +0100 |
tree | 0f07d4d6dec9e4f415b360b56fcc12eafe6110b4 | |
parent | 2ac8079b9414be67a99f736e15383e85da56f7dd [diff] |
Allow copying the enumeration values when registering types The existing API for registering enumeration types requires that the GEnumValue and GFlagsValue arrays that describe the enumeration values is located in static storage. This causes unnecessary relocations, and does not save that much memory, compared to the rest of GType. We can provide a new API, to be used by developers, to copy the enumeration values, and thus drop the ones they have from static storage.