diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
commit | 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch) | |
tree | 2784370cda9bbf2da9114d70f05399c0b229d28c /ui/recent_utils.h | |
parent | Adding debian version 4.2.6-1. (diff) | |
download | wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/recent_utils.h')
-rw-r--r-- | ui/recent_utils.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ui/recent_utils.h b/ui/recent_utils.h index 711f80d1..2d3fc7b1 100644 --- a/ui/recent_utils.h +++ b/ui/recent_utils.h @@ -17,9 +17,16 @@ extern "C" { #endif /* __cplusplus */ -/* Add a new recent capture filename to the "Recent Files" submenu - (duplicates will be ignored) */ -extern void add_menu_recent_capture_file(const gchar *cf_name); +/** Add a new recent capture filename to the "Recent Files" submenu + * (duplicates will be ignored) + * + * @param cf_name Capture filename to add + * @param force If true, then prefs.gui_recent_file_count_max will be + * ignored when adding the file. This is for startup, when the recent_common + * file is read before the prefs file. (It will be corrected later when + * prefs are read.) + */ +extern void add_menu_recent_capture_file(const char *cf_name, bool force); /** Write all recent capture filenames to the user's recent file. * @param rf recent file @@ -37,7 +44,7 @@ extern void cfilter_combo_recent_write_all(FILE *rf); * * @param dftext the filter string */ -extern gboolean dfilter_combo_add_recent(const gchar *dftext); +extern bool dfilter_combo_add_recent(const char *dftext); /** Write all non-empty display filters (until maximum count) * of the combo box GList to the user's recent file. |