2 * Routines called to write stuff to the recent file; their implementations
3 * are GUI-dependent, but the API's aren't
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __UI_RECENT_UTILS_H__
27 #define __UI_RECENT_UTILS_H__
31 #endif /* __cplusplus */
33 /* Add a new recent capture filename to the "Recent Files" submenu
34 (duplicates will be ignored) */
35 extern void add_menu_recent_capture_file(const gchar
*cf_name
);
37 /** Write all recent capture filenames to the user's recent file.
38 * @param rf recent file
40 extern void menu_recent_file_write_all(FILE *rf
);
42 /** Write all non-empty capture filters (until maximum count)
43 * of the combo box GList to the user's recent file.
45 * @param rf the recent file
47 extern void cfilter_combo_recent_write_all(FILE *rf
);
49 /** Add a display filter coming from the user's recent file to the dfilter combo box.
51 * @param dftext the filter string
53 extern gboolean
dfilter_combo_add_recent(const gchar
*dftext
);
55 /** Write all non-empty display filters (until maximum count)
56 * of the combo box GList to the user's recent file.
58 * @param rf the recent file
60 extern void dfilter_recent_combo_write_all(FILE *rf
);
62 #ifdef HAVE_PCAP_REMOTE
63 /** Write all remote hosts to the recent file
65 * @param rf recent file
68 capture_remote_combo_recent_write_all(FILE *rf
);
70 /** Add a new remote host from the recent file
72 * @param s string with hostname,port,auth_type
73 * @return TRUE if correctly added
76 capture_remote_combo_add_recent(const gchar
*s
);
79 /** Write all packet list geometry values to the recent file.
81 * @param rf recent file handle from caller
83 extern void packet_list_recent_write_all(FILE *rf
);
87 #endif /* __cplusplus */
89 #endif /* __UI_RECENT_UTILS_H__ */
97 * indent-tabs-mode: nil
100 * ex: set shiftwidth=4 tabstop=8 expandtab:
101 * :indentSize=4:tabSize=8:noTabs=true: