-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
--- /dev/null
+/* $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);