1 #ifndef CCAN_CDUMP_PARSE_H
2 #define CCAN_CDUMP_PARSE_H
4 * cdump_parse - code generator for cdump
5 * @ctx: talloc context to use for allocations
6 * @code: the code to parse for CDUMP_SAVED definitions
7 * @declarations: pointer to string to hold declarations
8 * @definitions: pointer to string to hold definitions
10 * This defines a struct cdump_desc for every structure and enum which
11 * has the CDUMP_SAVED label. The declarations and definitions are separated,
12 * as they usually are placed in the header file and source file respectively.
14 * A non-NULL return indicates a human-readable error message. Usually it
15 * means that the code couldn't be parsed.
17 char *cdump_parse(const void *ctx, const char *code,
18 char **declarations, char **definitions);
20 #endif /* CCAN_CDUMP_PARSE_H */