From bcacff8e2fc03007501455792b55b793996d336a Mon Sep 17 00:00:00 2001 From: siboud Date: Tue, 15 Mar 2005 14:26:53 +0000 Subject: [PATCH] added lttv_filter_clone(...) prototype git-svn-id: http://ltt.polymtl.ca/svn@888 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/filter.c | 13 +++++++++++++ ltt/branches/poly/lttv/lttv/filter.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index 8b03facf..62092a25 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -118,6 +118,19 @@ void lttv_filter_tree_destroy(lttv_filter_tree* tree) { g_free(tree); } +lttv_filter* +lttv_filter_clone(lttv_filter* tree) { + + lttv_filter* newtree = lttv_filter_tree_new(); + + /* + * TODO : Copy tree into new tree + */ + + return newtree; + +} + void lttv_filter_tree_add_node(GPtrArray* stack, lttv_filter_tree* subtree, lttv_logical_op op) { diff --git a/ltt/branches/poly/lttv/lttv/filter.h b/ltt/branches/poly/lttv/lttv/filter.h index a108fa8b..ecf53c1a 100644 --- a/ltt/branches/poly/lttv/lttv/filter.h +++ b/ltt/branches/poly/lttv/lttv/filter.h @@ -166,6 +166,8 @@ lttv_filter_tree* lttv_filter_tree_new(); void lttv_filter_tree_destroy(lttv_filter_tree* tree); +lttv_filter* lttv_filter_clone(lttv_filter* tree); + void lttv_filter_tree_add_node(GPtrArray* stack, lttv_filter_tree* subtree, lttv_logical_op op); /* Parse field path contained in list */ -- 2.34.1