blob: 1b9a38b50ac188a3a7e45bae78da49988c0f6e32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 */
|