openbox/obcl/obcl.h
2003-04-14 06:47:44 +00:00

39 lines
634 B
C

#ifndef __obcl_h
#define __obcl_h
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
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;
GList *cl_parse(gchar *file);
GList *cl_parse_fh(FILE *file);
void cl_tree_free(GList *tree);
void cl_tree_print(GList *tree, int depth);
void cl_tree_process(GList *tree);
#endif /* __obcl_h */