Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / ui / recent_utils.h
blob2d3fc7b136768fdd14f26b05740d09f8bc4d36f6
1 /** @file
3 * Routines called to write stuff to the recent file; their implementations
4 * are GUI-dependent, but the API's aren't
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef __UI_RECENT_UTILS_H__
14 #define __UI_RECENT_UTILS_H__
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
20 /** Add a new recent capture filename to the "Recent Files" submenu
21 * (duplicates will be ignored)
23 * @param cf_name Capture filename to add
24 * @param force If true, then prefs.gui_recent_file_count_max will be
25 * ignored when adding the file. This is for startup, when the recent_common
26 * file is read before the prefs file. (It will be corrected later when
27 * prefs are read.)
29 extern void add_menu_recent_capture_file(const char *cf_name, bool force);
31 /** Write all recent capture filenames to the user's recent file.
32 * @param rf recent file
34 extern void menu_recent_file_write_all(FILE *rf);
36 /** Write all non-empty capture filters (until maximum count)
37 * of the combo box GList to the user's recent file.
39 * @param rf the recent file
41 extern void cfilter_combo_recent_write_all(FILE *rf);
43 /** Add a display filter coming from the user's recent file to the dfilter combo box.
45 * @param dftext the filter string
47 extern bool dfilter_combo_add_recent(const char *dftext);
49 /** Write all non-empty display filters (until maximum count)
50 * of the combo box GList to the user's recent file.
52 * @param rf the recent file
54 extern void dfilter_recent_combo_write_all(FILE *rf);
56 #ifdef __cplusplus
58 #endif /* __cplusplus */
60 #endif /* __UI_RECENT_UTILS_H__ */