2 * Definitions for routines for file sets.
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #endif /* __cplusplus */
30 typedef struct _fileset_entry {
31 char *fullname; /* File name with path (g_strdup'ed) */
32 char *name; /* File name without path (g_strdup'ed) */
33 time_t ctime; /* create time */
34 time_t mtime; /* last modified time */
35 gint64 size; /* size of file in bytes */
36 gboolean current; /* is this the currently loaded file? */
40 /* helper: is this a probable file of a file set (does the naming pattern match)? */
41 extern gboolean fileset_filename_match_pattern(const char *fname);
43 extern void fileset_add_dir(const char *fname, void *window);
45 extern void fileset_delete(void);
47 /* get the current directory name */
48 extern const char *fileset_get_dirname(void);
50 extern fileset_entry *fileset_get_next(void);
51 extern fileset_entry *fileset_get_previous(void);
55 /* this file is a part of the current file set */
56 extern void fileset_dlg_add_file(fileset_entry *entry, void *window);
58 extern void fileset_update_dlg(void *window);
60 extern void fileset_update_file(const char *path);
64 #endif /* __cplusplus */
66 #endif /* __FILESET_H__ */
69 * Editor modelines - http://www.wireshark.org/tools/modelines.html
74 * indent-tabs-mode: nil
77 * vi: set shiftwidth=4 tabstop=8 expandtab:
78 * :indentSize=4:tabSize=8:noTabs=true: