List the disappearance of the ADDRESS macros as an API change.
[metze/wireshark/wip.git] / fileset.h
1 /* fileset.h
2  * Definitions for routines for file sets.
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
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.
12  *
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.
17  *
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.
21  */
22
23 #ifndef __FILESET_H__
24 #define __FILESET_H__
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29
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? */
37 } fileset_entry;
38
39
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);
42
43 extern void fileset_add_dir(const char *fname, void *window);
44
45 extern void fileset_delete(void);
46
47 /* get the current directory name */
48 extern const char *fileset_get_dirname(void);
49
50 extern fileset_entry *fileset_get_next(void);
51 extern fileset_entry *fileset_get_previous(void);
52
53
54
55 /* this file is a part of the current file set */
56 extern void fileset_dlg_add_file(fileset_entry *entry, void *window);
57
58 extern void fileset_update_dlg(void *window);
59
60 extern void fileset_update_file(const char *path);
61
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65
66 #endif /* __FILESET_H__ */
67
68 /*
69  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
70  *
71  * Local variables:
72  * c-basic-offset: 4
73  * tab-width: 8
74  * indent-tabs-mode: nil
75  * End:
76  *
77  * vi: set shiftwidth=4 tabstop=8 expandtab:
78  * :indentSize=4:tabSize=8:noTabs=true:
79  */