Switch Luxi TH code from simple to custom fields
authorIustin Pop <iustin@google.com>
Thu, 8 Nov 2012 12:26:40 +0000 (13:26 +0100)
committerIustin Pop <iustin@google.com>
Mon, 12 Nov 2012 09:44:23 +0000 (10:44 +0100)
commit88609f00af9f9169677d7c897040bf06908cc4b7
tree6b3ba9443286fff3a3e5c4384c535764164940f1
parenta309a3b44c463528c4c826e5ce32bf811bded578
Switch Luxi TH code from simple to custom fields

This is needed so that we have more flexibility in generating Luxi
serialisation code (deserialisation is still custom). Also, only
exceptions are now using the 'simple' field types, so we might be able
later to convert and remove that TH code as well.

Since we will use custom serialisation fields in the future, we change
the order of serialisation for custom-save fields; Luxi uses
positional as opposed to name-based ordering, so we need to keep this
stable.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
htools/Ganeti/Luxi.hs
htools/Ganeti/THH.hs