libargo/marshaller/lib/marshaller.h
2021-05-04 16:44:36 +02:00

17 lines
531 B
C

#ifndef MARSHALLER_H
#define MARSHALLER_H
jsonValue_t* _json_marshall_value(const char* type, void* value);
char* _json_marshall(const char* type, void* value);
void* _json_unmarshall_value(const char* type, jsonValue_t* value);
void* _json_unmarshall(const char* type, const char* json);
void _json_free_struct(const char* type, void* value);
#define json_marshall(t, v) _json_marshall(# t, (void*) v)
#define json_unmarshall(t, j) (t*) _json_unmarshall(#t, j)
#define json_free_struct(t, v) _json_free_struct(#t, v)
#endif