X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=obcl%2Fobcl.h;fp=obcl%2Fobcl.h;h=a940e89dbd5b257cbbb0f5d70291458916c57818;hb=7aae14e9b83242c2778e57c069fb8f299b8172f3;hp=0000000000000000000000000000000000000000;hpb=69854023a4f36deb80c7c3dee891acc48f8ae6da;p=chaz%2Fopenbox diff --git a/obcl/obcl.h b/obcl/obcl.h new file mode 100644 index 00000000..a940e89d --- /dev/null +++ b/obcl/obcl.h @@ -0,0 +1,38 @@ +#ifndef __obcl_h +#define __obcl_h + +#include +#include +#include + +typedef enum CLNodeType { + CL_ID, + CL_NUM, + CL_STR, + CL_LIST, + CL_BLOCK, + CL_LISTBLOCK +} CLNodeType; + +typedef struct CLNode { + CLNodeType type; + union { + struct { + gchar *id; + GList *list; + GList *block; + } lb; + double num; + gchar *str; + } u; + +} CLNode; + +void free_cl_tree(GList *tree); +GList *cl_parse(gchar *file); +GList *cl_parse_fh(FILE *file); +void cl_print_tree(GList *tree, int depth); + +GList *parse_file(FILE *fh); + +#endif /* __obcl_h */