Get rid of some GTK+-only stuff.
[metze/wireshark/wip.git] / ui / recent_utils.h
1 /* recent_utils.h
2  * Routines called to write stuff to the recent file; their implementations
3  * are GUI-dependent, but the API's aren't
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11
12 #ifndef __UI_RECENT_UTILS_H__
13 #define __UI_RECENT_UTILS_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
18
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);
22
23 /** Write all recent capture filenames to the user's recent file.
24  * @param rf recent file
25  */
26 extern void menu_recent_file_write_all(FILE *rf);
27
28 /** Write all non-empty capture filters (until maximum count)
29  *  of the combo box GList to the user's recent file.
30  *
31  * @param rf the recent file
32  */
33 extern void cfilter_combo_recent_write_all(FILE *rf);
34
35 /** Add a display filter coming from the user's recent file to the dfilter combo box.
36  *
37  * @param dftext the filter string
38  */
39 extern gboolean dfilter_combo_add_recent(const gchar *dftext);
40
41 /** Write all non-empty display filters (until maximum count)
42  *  of the combo box GList to the user's recent file.
43  *
44  * @param rf the recent file
45  */
46 extern void dfilter_recent_combo_write_all(FILE *rf);
47
48 /** Write all packet list geometry values to the recent file.
49  *
50  *  @param rf recent file handle from caller
51  */
52 extern void packet_list_recent_write_all(FILE *rf);
53
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57
58 #endif /* __UI_RECENT_UTILS_H__ */
59
60 /*
61  * Editor modelines
62  *
63  * Local Variables:
64  * c-basic-offset: 4
65  * tab-width: 8
66  * indent-tabs-mode: nil
67  * End:
68  *
69  * ex: set shiftwidth=4 tabstop=8 expandtab:
70  * :indentSize=4:tabSize=8:noTabs=true:
71  */