summaryrefslogtreecommitdiff
path: root/obcl/main.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-05-24 07:29:40 +0000
committerDana Jansens <danakj@orodu.net>2003-05-24 07:29:40 +0000
commitd61b48a2ef2c315818a322ae84385228f4438dd3 (patch)
tree3821969a827f1e323500993036e427f361e308ae /obcl/main.c
parentb1fe0dbbc2ef4472ac8893d9b3b20e9cb149af6d (diff)
remove obcl. shrimpx may work on this in the future but we are not usnig it now.
Diffstat (limited to 'obcl/main.c')
-rw-r--r--obcl/main.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/obcl/main.c b/obcl/main.c
deleted file mode 100644
index 7c84b5e7..00000000
--- a/obcl/main.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "obcl.h"
-
-void process_foo(CLNode *node)
-{
- if (CL_IS_NODE(node)) {
- printf("foo name: %s\n"
- "foo age: %.2f\n",
- CL_STRVAL(CL_LIST_NTH(node,0)),
- CL_NUMVAL(CL_LIST_NTH(node,1)));
- }
-}
-
-void process_bah(CLNode *node)
-{
- printf("handling bah\n");
-}
-
-int main()
-{
- GList *lst = cl_parse("foo.conf");
-/* cl_tree_print(lst,0); */
-/* cl_tree_free(lst); */
-
-
- CLProc *p = cl_proc_new();
- cl_proc_add_handler_func(p, "foo", process_foo);
- cl_proc_add_handler_func(p, "bah", process_bah);
- cl_proc_add_handler_proc(p,"meh",p);
-
- cl_process(lst, p);
-
- return 0;
-}