]> git.ozlabs.org Git - ccan-lca-2011.git/blob - ccan/cdump/cdump_parse.h
cdump: first cut of translation of Tridge's genstruct junkcode.
[ccan-lca-2011.git] / ccan / cdump / cdump_parse.h
1 #ifndef CCAN_CDUMP_PARSE_H
2 #define CCAN_CDUMP_PARSE_H
3 /**
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
9  *
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.
13  *
14  * A non-NULL return indicates a human-readable error message.  Usually it
15  * means that the code couldn't be parsed.
16  */
17 char *cdump_parse(const void *ctx, const char *code,
18                   char **declarations, char **definitions);
19
20 #endif /* CCAN_CDUMP_PARSE_H */
21