aboutsummaryrefslogtreecommitdiffstats
path: root/epan/filesystem.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-10-22 22:59:26 +0000
committerGuy Harris <guy@alum.mit.edu>2001-10-22 22:59:26 +0000
commite4db9c4b6440c4f34c67f670b0517b7eed269063 (patch)
tree87e09fb73dc03de0fcca177a74a3366751309398 /epan/filesystem.h
parentf4c0885cbd1a3b26286bab47bb9803e5f4d6184d (diff)
Add a routine to get the directory in which personal configuration files
reside. Use it, rather than concatenating the user's home directory and ".ethereal" in a number of files. Fix up some additional places to use G_DIR_SEPARATOR_S as the pathname separator. svn path=/trunk/; revision=4061
Diffstat (limited to 'epan/filesystem.h')
-rw-r--r--epan/filesystem.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h
index 37f4d432a8..20c459e6e7 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -1,7 +1,7 @@
/* filesystem.h
* Filesystem utility definitions
*
- * $Id: filesystem.h,v 1.5 2001/10/21 21:47:58 guy Exp $
+ * $Id: filesystem.h,v 1.6 2001/10/22 22:59:25 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -26,15 +26,6 @@
#define FILESYSTEM_H
/*
- * Name of directory, under the user's home directory, in which
- * personal configuration files are stored.
- *
- * XXX - should this be ".libepan"? For backwards-compatibility, I'll keep
- * it ".ethereal" for now.
- */
-#define PF_DIR ".ethereal"
-
-/*
* Given a pathname, return a pointer to the last pathname separator
* character in the pathname, or NULL if the pathname contains no
* separators.
@@ -84,4 +75,9 @@ const char *get_systemfile_dir(void);
* variable, or a default directory if HOME is not set */
const char* get_home_dir(void);
+/*
+ * Get the directory in which personal configuration files reside.
+ */
+const char *get_persconffile_dir(void);
+
#endif /* FILESYSTEM_H */