3 void process_foo(CLNode *node)
5 if (CL_IS_NODE(node)) {
6 printf("foo name: %s\n"
8 CL_STRVAL(CL_LIST_NTH(node,0)),
9 CL_NUMVAL(CL_LIST_NTH(node,1)));
13 void process_bah(CLNode *node)
15 printf("handling bah\n");
20 GList *lst = cl_parse("foo.conf");
21 /* cl_tree_print(lst,0); */
22 /* cl_tree_free(lst); */
25 CLProc *p = cl_proc_new();
26 cl_proc_add_handler_func(p, "foo", process_foo);
27 cl_proc_add_handler_func(p, "bah", process_bah);
28 cl_proc_add_handler_proc(p,"meh",p);