Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Feb 2022 13:11:00 +0100
From:      Eduardo =?ISO-8859-1?Q?Morr=E1s?= <emorrasg@yahoo.es>
To:        freebsd-questions@freebsd.org
Subject:   Using libucl for serialization struct?
Message-ID:  <20220206131100.28b4f3ce321eee5ff92b0076@yahoo.es>
References:  <20220206131100.28b4f3ce321eee5ff92b0076.ref@yahoo.es>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello,

Can I use libucl as a serializer of a struct in C?

There are conversion functions [1] so I can manually implement a custom
serializer and deserializer for a struct, but if I have lots of
different struct it becomes a pain.

Is there a generic serializer/deserializer which I pass the struct and
it returns a ucl file or char* or similar?

[1] Conversion functions
https://github.com/vstakhov/libucl/blob/master/doc/api.md#conversion-functi=
ons


---   ---
Eduardo Morr=E1s <emorrasg@yahoo.es>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220206131100.28b4f3ce321eee5ff92b0076>