Change the formatting strings used to create the Conversation Filter submenu
[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  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 #ifndef __UI_RECENT_UTILS_H__
25 #define __UI_RECENT_UTILS_H__
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31 /* Add a new recent capture filename to the "Recent Files" submenu
32    (duplicates will be ignored) */
33 extern void add_menu_recent_capture_file(const gchar *cf_name);
34
35 /** Write all recent capture filenames to the user's recent file.
36  * @param rf recent file
37  */
38 extern void menu_recent_file_write_all(FILE *rf);
39
40 /** Write all non-empty capture filters (until maximum count)
41  *  of the combo box GList to the user's recent file.
42  *
43  * @param rf the recent file
44  */
45 extern void cfilter_combo_recent_write_all(FILE *rf);
46
47 /** Add a display filter coming from the user's recent file to the dfilter combo box.
48  *
49  * @param dftext the filter string
50  */
51 extern gboolean dfilter_combo_add_recent(const gchar *dftext);
52
53 /** Write all non-empty display filters (until maximum count)
54  *  of the combo box GList to the user's recent file.
55  *
56  * @param rf the recent file
57  */
58 extern void dfilter_recent_combo_write_all(FILE *rf);
59
60 #ifdef HAVE_PCAP_REMOTE
61 /** Write all remote hosts to the recent file
62  *
63  * @param rf recent file
64  */
65 void
66 capture_remote_combo_recent_write_all(FILE *rf);
67
68 /** Add a new remote host from the recent file
69  *
70  * @param s string with hostname,port,auth_type
71  * @return TRUE if correctly added
72  */
73 gboolean
74 capture_remote_combo_add_recent(const gchar *s);
75 #endif
76
77 /** Write all packet list geometry values to the recent file.
78  *
79  *  @param rf recent file handle from caller
80  */
81 extern void packet_list_recent_write_all(FILE *rf);
82
83 #ifdef __cplusplus
84 }
85 #endif /* __cplusplus */
86
87 #endif /* __UI_RECENT_UTILS_H__ */
88
89 /*
90  * Editor modelines
91  *
92  * Local Variables:
93  * c-basic-offset: 4
94  * tab-width: 8
95  * indent-tabs-mode: nil
96  * End:
97  *
98  * ex: set shiftwidth=4 tabstop=8 expandtab:
99  * :indentSize=4:tabSize=8:noTabs=true:
100  */