summaryrefslogtreecommitdiff
path: root/ui/filter_files.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-09 02:01:05 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-09 17:57:52 +0000
commit7d5ce06cbe35f3f818695c87e5b0f42172ee3784 (patch)
treeb1819216afd831302cc94af54187122a2efdd4d8 /ui/filter_files.h
parent1abbb503e4242f56921b7ee950f185711e9f85c0 (diff)
downloadwireshark-7d5ce06cbe35f3f818695c87e5b0f42172ee3784.tar.gz
Pull the error reporting into {read,save}_filter_list.
Change-Id: I4d9582661f2f1728d400eeb2a1b1dea98f32ce7f Reviewed-on: https://code.wireshark.org/review/20982 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/filter_files.h')
-rw-r--r--ui/filter_files.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/ui/filter_files.h b/ui/filter_files.h
index f953b2f506..57445d4fdc 100644
--- a/ui/filter_files.h
+++ b/ui/filter_files.h
@@ -48,13 +48,9 @@ typedef struct {
/*
* Read in a list of filters.
*
- * On success, "*pref_path_return" is set to NULL.
- * On error, "*pref_path_return" is set to point to the pathname of
- * the file we tried to read - it should be freed by our caller -
- * and "*errno_return" is set to the error.
+ * On error, report the error via the UI.
*/
-void read_filter_list(filter_list_type_t list_type, char **pref_path_return,
- int *errno_return);
+void read_filter_list(filter_list_type_t list_type);
/*
* Get a pointer to the first entry in a filter list.
@@ -76,13 +72,9 @@ void remove_from_filter_list(filter_list_type_t list, GList *fl_entry);
/*
* Write out a list of filters.
*
- * On success, "*pref_path_return" is set to NULL.
- * On error, "*pref_path_return" is set to point to the pathname of
- * the file we tried to read - it should be freed by our caller -
- * and "*errno_return" is set to the error.
+ * On error, report the error via the UI.
*/
-void save_filter_list(filter_list_type_t list_type, char **pref_path_return,
- int *errno_return);
+void save_filter_list(filter_list_type_t list_type);
/*
* Clone the filter list so it can be edited. GTK+ only.