smyrna Makefile.am fixes
authorellson <devnull@localhost>
Tue, 26 Feb 2008 19:33:14 +0000 (19:33 +0000)
committerellson <devnull@localhost>
Tue, 26 Feb 2008 19:33:14 +0000 (19:33 +0000)
lib/filter/Makefile.am
lib/filter/filter.c [new file with mode: 0644]

index 462f4107401fcce6375236353fa657dc9d3385f0..a9940c9f5234ebcfd81cb9d801d55ff5e517d1eb 100644 (file)
@@ -7,17 +7,16 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/lib/gui \
        -I$(top_srcdir)/lib/topfish \
        -I$(top_srcdir)/cmd/smyrna \
+       -I$(top_srcdir)/lib/glcomp \
        -I$(top_srcdir)/lib/xdot \
        -I$(top_srcdir)/lib/cgraph \
        -I$(top_srcdir)/lib/cdt \
        $(GTK_CFLAGS) $(GTKGL_CFLAGS) $(GTKGLEXT_CFLAGS) $(GLADE_CFLAGS) $(FREETYPE2_CFLAGS)
 
 if WITH_SMYRNA
-noinst_HEADERS = \
-       btree.h filter.h 
+noinst_HEADERS = btree.h filter.h 
 
 noinst_LTLIBRARIES = libfilter_C.la
 endif
 
-libfilter_C_la_SOURCES = \
-       Filter.c btree.c
+libfilter_C_la_SOURCES = filter.c btree.c
diff --git a/lib/filter/filter.c b/lib/filter/filter.c
new file mode 100644 (file)
index 0000000..c51da2a
--- /dev/null
@@ -0,0 +1,50 @@
+/* $Id$ $Revision$ */
+/* vim:set shiftwidth=4 ts=8: */
+
+/**********************************************************
+*      This software is part of the graphviz package      *
+*                http://www.graphviz.org/                 *
+*                                                         *
+*            Copyright (c) 1994-2004 AT&T Corp.           *
+*                and is licensed under the                *
+*            Common Public License, Version 1.0           *
+*                      by AT&T Corp.                      *
+*                                                         *
+*        Information and Software Systems Research        *
+*              AT&T Research, Florham Park NJ             *
+**********************************************************/
+
+#include "filter.h"
+
+int clear_filter(tv_filter* f)
+{
+       delete_node(f->root);
+}
+
+int init_filters(tv_filters* filters)
+{
+       filters->filter_count=0;
+       filters->filters=0;
+}
+int add_filter_to_filters(tv_filters* filters,tv_filter* filter)
+{
+       filters->filters=realloc(filters->filters,sizeof(tv_filter*)*(filters->filter_count+1));
+       filters->filters[filters->filter_count]=filter;
+       filters->filter_count++;
+}
+int clear_filters(tv_filters* filters)
+{
+       //deep clear
+       int ind=0;
+       for (ind =0;ind < filters->filter_count ; ind ++)
+       {
+               clear_filter(filters->filters[ind]);
+               free(filters->filters[ind]);
+       }
+       filters->filter_count=0;
+}
+int union_filter(tv_filter* f1,tv_filter* f2)
+{
+               
+}
+int intersect_filter(tv_filter* f1,tv_filter* f2);