SingingCat 0
application
protobuf.h
1#ifndef PROTOBUF_H
2#define PROTOBUF_H 1
3/*
4 * \brief convert a buffer in memory or flash to a struct defined by a .proto file
5 */
6int buf_to_struct(void *buf, int bufsize, void *iter, void *out);
7/*
8 * \brief convert a struct to memory defined by a .proto file
9 */
10int struct_to_buf(void *buf, int bufsize, void *iter, void *in);
11/*
12 * \brief release memory for a decoded struct
13 */
14void proto_release(void *buf);
15#endif