From 7d5ce06cbe35f3f818695c87e5b0f42172ee3784 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 9 Apr 2017 02:01:05 -0700 Subject: Pull the error reporting into {read,save}_filter_list. Change-Id: I4d9582661f2f1728d400eeb2a1b1dea98f32ce7f Reviewed-on: https://code.wireshark.org/review/20982 Reviewed-by: Guy Harris --- ui/filter_files.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'ui/filter_files.h') 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. -- cgit v1.2.1