diff options
Diffstat (limited to 'client/libacron/private/serializer.h')
-rw-r--r-- | client/libacron/private/serializer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client/libacron/private/serializer.h b/client/libacron/private/serializer.h new file mode 100644 index 0000000..1b9a38b --- /dev/null +++ b/client/libacron/private/serializer.h @@ -0,0 +1,18 @@ +/* + * Created by yuuta on 7/19/22. + */ + +#ifndef LIBAC_SERIALIZER_H +#define LIBAC_SERIALIZER_H + +/* An internal error code indicating that more data is required. + * Should not conflict with other error codes. */ +#define AC_E_SERIALIZER_CONTINUE -1 + +int deserialize(const char *string, unsigned int len, ac_obj_t **out); + +int serializer_finalize(void); + +int serialize_request(const ac_request_t *req, json_object **out); + +#endif /* LIBAC_SERIALIZER_H */ |