From 889a082501e0d54dd2863c9fb2b3a5df4aabfb85 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sun, 1 Oct 2006 17:59:30 +0000 Subject: Change the filter dialog (capture and display filters), so it has a real Cancel button now - the former Close button didn't reverted the changes done. svn path=/trunk/; revision=19390 --- filters.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'filters.h') diff --git a/filters.h b/filters.h index 7057ebd7ab..41f563db86 100644 --- a/filters.h +++ b/filters.h @@ -27,8 +27,10 @@ * Filter lists. */ typedef enum { - CFILTER_LIST, /* capture filter list */ - DFILTER_LIST /* display filter list */ + CFILTER_LIST, /* capture filter list - saved */ + DFILTER_LIST, /* display filter list - saved */ + CFILTER_EDITED_LIST, /* capture filter list - currently edited */ + DFILTER_EDITED_LIST /* display filter list - currently edited */ } filter_list_type_t; /* @@ -47,7 +49,7 @@ typedef struct { * the file we tried to read - it should be freed by our caller - * and "*errno_return" is set to the error. */ -void read_filter_list(filter_list_type_t list, char **pref_path_return, +void read_filter_list(filter_list_type_t list_type, char **pref_path_return, int *errno_return); /* @@ -75,5 +77,11 @@ void remove_from_filter_list(filter_list_type_t list, GList *fl_entry); * the file we tried to read - it should be freed by our caller - * and "*errno_return" is set to the error. */ -void save_filter_list(filter_list_type_t list, char **pref_path_return, +void save_filter_list(filter_list_type_t list_type, char **pref_path_return, int *errno_return); + +/* + * Clone the filter list so it can be edited. + */ +void copy_filter_list(filter_list_type_t dest_type, filter_list_type_t src_type); + -- cgit v1.2.3