2 * Routines called to write stuff to the recent file; their implementations
3 * are GUI-dependent, but the API's aren't
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __UI_RECENT_UTILS_H__
13 #define __UI_RECENT_UTILS_H__
17 #endif /* __cplusplus */
19 /* Add a new recent capture filename to the "Recent Files" submenu
20 (duplicates will be ignored) */
21 extern void add_menu_recent_capture_file(const gchar *cf_name);
23 /** Write all recent capture filenames to the user's recent file.
24 * @param rf recent file
26 extern void menu_recent_file_write_all(FILE *rf);
28 /** Write all non-empty capture filters (until maximum count)
29 * of the combo box GList to the user's recent file.
31 * @param rf the recent file
33 extern void cfilter_combo_recent_write_all(FILE *rf);
35 /** Add a display filter coming from the user's recent file to the dfilter combo box.
37 * @param dftext the filter string
39 extern gboolean dfilter_combo_add_recent(const gchar *dftext);
41 /** Write all non-empty display filters (until maximum count)
42 * of the combo box GList to the user's recent file.
44 * @param rf the recent file
46 extern void dfilter_recent_combo_write_all(FILE *rf);
48 /** Write all packet list geometry values to the recent file.
50 * @param rf recent file handle from caller
52 extern void packet_list_recent_write_all(FILE *rf);
56 #endif /* __cplusplus */
58 #endif /* __UI_RECENT_UTILS_H__ */
66 * indent-tabs-mode: nil
69 * ex: set shiftwidth=4 tabstop=8 expandtab:
70 * :indentSize=4:tabSize=8:noTabs=true: