#include <kvstore.h>
kv_error_t
kv_avro_generic_to_value(kv_store_t *store,
avro_value_t *avro_value,
kv_value_t **value);
Converts (serializes) an generic Avro value to a
kv_value_t so that the data can be written to
the store. The Avro schema associated with the Avro value is used
to perform the serialization.
The avro_value parameter is
the Avro value that you want to serialize. Once you are
done with the serialization, you are still responsible
for ensuring that the avro_value_t is
freed (by decrement the structure's reference count to 0).
The value parameter
references memory into which a pointer to the allocated
kv_value_t structure is copied. When
you are done with this structure, it is your
responsibility to free it using kv_release_value().