2 * Definitions for routines for file sets.
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 #endif /* __cplusplus */
33 typedef struct _fileset_entry {
34 char *fullname; /* File name with path (g_strdup'ed) */
35 char *name; /* File name without path (g_strdup'ed) */
36 time_t ctime; /* create time */
37 time_t mtime; /* last modified time */
38 gint64 size; /* size of file in bytes */
39 gboolean current; /* is this the currently loaded file? */
43 /* helper: is this a probable file of a file set (does the naming pattern match)? */
44 extern gboolean fileset_filename_match_pattern(const char *fname);
46 /* helper: test, if both files could be in the same file set */
47 extern gboolean fileset_is_file_in_set(const char *fname1, const char *fname2);
49 extern void fileset_add_dir(const char *fname);
51 extern void fileset_delete(void);
53 /* get the current directory name */
54 extern const char *fileset_get_dirname(void);
56 extern fileset_entry *fileset_get_next(void);
57 extern fileset_entry *fileset_get_previous(void);
61 /* this file is a part of the current file set */
62 extern void fileset_dlg_add_file(fileset_entry *entry);
64 extern void fileset_file_opened(const char *fname);
66 extern void fileset_file_closed(void);
68 extern void fileset_update_dlg(void);
72 #endif /* __cplusplus */
74 #endif /* __FILESET_H__ */