summaryrefslogtreecommitdiff
path: root/prefs.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 /prefs.h
parentf4c0885cbd1a3b26286bab47bb9803e5f4d6184d (diff)
downloadwireshark-e4db9c4b6440c4f34c67f670b0517b7eed269063.tar.gz
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 'prefs.h')
-rw-r--r--prefs.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/prefs.h b/prefs.h
index da6289f019..bca7c7664e 100644
--- a/prefs.h
+++ b/prefs.h
@@ -1,12 +1,11 @@
/* prefs.h
* Definitions for preference handling routines
*
- * $Id: prefs.h,v 1.31 2001/07/22 21:25:11 guy Exp $
+ * $Id: prefs.h,v 1.32 2001/10/22 22:59:23 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
- *
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -186,13 +185,13 @@ void prefs_register_modules(void);
the user's preferences file, stuff the errno into "*pf_errno_return"
and a pointer to the path of the file into "*pf_path_return", and
return NULL. */
-e_prefs *read_prefs(int *, char **, int *, char **);
+e_prefs *read_prefs(int *, char **, int *, const char **);
/* Write out "prefs" to the user's preferences file, and return 0.
If we got an error, stuff a pointer to the path of the preferences file
into "*pf_path_return", and return the errno. */
-int write_prefs(char **);
+int write_prefs(const char **);
/* Copy a set of preferences. */
void copy_prefs(e_prefs *dest, e_prefs *src);