aboutsummaryrefslogtreecommitdiffstats
path: root/epan/filesystem.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-05-15 07:44:54 +0000
committerGuy Harris <guy@alum.mit.edu>2003-05-15 07:44:54 +0000
commite1647e4504d31f8260e23ec60c645735516060e0 (patch)
tree49ebcdcfb4b2a8c020befb29cf224778712b71b9 /epan/filesystem.h
parent86f3c38c4aef93560541c50e2f501e94802b337d (diff)
From Richard Urwin:
add support for a system-wide color filter file; fix a bug where "read_filters()" didn't close the file handle. Use the "get_datafile_path()" routine he added to construct the pathname of the Diameter directory, the global preferences file, and the manuf file. svn path=/trunk/; revision=7677
Diffstat (limited to 'epan/filesystem.h')
-rw-r--r--epan/filesystem.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h
index ea356b8a56..a23a621684 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -1,7 +1,7 @@
/* filesystem.h
* Filesystem utility definitions
*
- * $Id: filesystem.h,v 1.12 2002/08/28 20:40:44 jmayer Exp $
+ * $Id: filesystem.h,v 1.13 2003/05/15 07:44:54 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -77,6 +77,12 @@ int test_for_fifo(const char *);
const char *get_datafile_dir(void);
/*
+ * Construct the path name of a global configuration file, given the
+ * file name.
+ */
+char *get_datafile_path(const char *filename);
+
+/*
* Get the directory in which files that, at least on UNIX, are
* system files (such as "/etc/ethers") are stored; on Windows,
* there's no "/etc" directory, so we get them from the Ethereal
@@ -105,4 +111,6 @@ int create_persconffile_dir(char **pf_dir_path_return);
*/
char *get_persconffile_path(const char *filename, gboolean for_writing);
+/* Delete a file */
+gboolean deletefile (const char *path);
#endif /* FILESYSTEM_H */