]> git.ozlabs.org Git - ccan-lca-2011.git/blob - ccan/cdump/_info
Add slides images.
[ccan-lca-2011.git] / ccan / cdump / _info
1 #include <stdio.h>
2 #include <string.h>
3 #include "config.h"
4
5 /**
6  * cdump - bundling and unbundling of C data structures
7  *
8  * cdump contains routines to bundle and unbundle C data structures,
9  * especially enums and structs, into a human readable format.
10  *
11  * The cdump_parse tool in the tools directory creates the data structure
12  * descriptions by parsing header files which are annotated with CDUMP_SAVED
13  * (see cdump.h).
14  *
15  * This is based on Andrew Tridgell's "genstruct" project.
16  *
17  * License: GPL
18  * Author: Rusty Russell <rusty@rustcorp.com.au>
19  */
20 int main(int argc, char *argv[])
21 {
22         if (argc != 2)
23                 return 1;
24
25         if (strcmp(argv[1], "depends") == 0) {
26                 printf("ccan/str\n");
27                 printf("ccan/talloc\n");
28                 return 0;
29         }
30
31         return 1;
32 }