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 * 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.
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.
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.
24 #ifndef __UI_RECENT_UTILS_H__
25 #define __UI_RECENT_UTILS_H__
29 #endif /* __cplusplus */
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);
35 /** Write all recent capture filenames to the user's recent file.
36 * @param rf recent file
38 extern void menu_recent_file_write_all(FILE *rf);
40 /** Write all non-empty capture filters (until maximum count)
41 * of the combo box GList to the user's recent file.
43 * @param rf the recent file
45 extern void cfilter_combo_recent_write_all(FILE *rf);
47 /** Add a display filter coming from the user's recent file to the dfilter combo box.
49 * @param dftext the filter string
51 extern gboolean dfilter_combo_add_recent(const gchar *dftext);
53 /** Write all non-empty display filters (until maximum count)
54 * of the combo box GList to the user's recent file.
56 * @param rf the recent file
58 extern void dfilter_recent_combo_write_all(FILE *rf);
60 #ifdef HAVE_PCAP_REMOTE
61 /** Write all remote hosts to the recent file
63 * @param rf recent file
66 capture_remote_combo_recent_write_all(FILE *rf);
68 /** Add a new remote host from the recent file
70 * @param s string with hostname,port,auth_type
71 * @return TRUE if correctly added
74 capture_remote_combo_add_recent(const gchar *s);
77 /** Write all packet list geometry values to the recent file.
79 * @param rf recent file handle from caller
81 extern void packet_list_recent_write_all(FILE *rf);
85 #endif /* __cplusplus */
87 #endif /* __UI_RECENT_UTILS_H__ */
95 * indent-tabs-mode: nil
98 * ex: set shiftwidth=4 tabstop=8 expandtab:
99 * :indentSize=4:tabSize=8:noTabs=true: