diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-10-23 05:01:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-10-23 05:01:02 +0000 |
commit | cf5a1d86e7280ec6b26a258238dd3fb3d6b31f59 (patch) | |
tree | 6b6ced95b0d95cc2f7243f2ff7546552b12f4dfa /epan/filesystem.h | |
parent | 04147b7dcf4e435dab2f6aa141e0e8dec7b88b06 (diff) | |
download | wireshark-cf5a1d86e7280ec6b26a258238dd3fb3d6b31f59.tar.gz |
Add a new routine to create the ".ethereal" directory for a user.
Use that routine rather than duplicating that code in the routines to
write out the preference file and filter files.
Use it in the code for the color filter dialog, so that the directory in
question is created if necessary.
As that routine returns an error indication, have the code that calls
that routine put up a message box if the attempt fails.
svn path=/trunk/; revision=4065
Diffstat (limited to 'epan/filesystem.h')
-rw-r--r-- | epan/filesystem.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h index a0956dbb69..cb4cfde27e 100644 --- a/epan/filesystem.h +++ b/epan/filesystem.h @@ -1,7 +1,7 @@ /* filesystem.h * Filesystem utility definitions * - * $Id: filesystem.h,v 1.7 2001/10/22 23:16:01 guy Exp $ + * $Id: filesystem.h,v 1.8 2001/10/23 05:00:59 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -76,4 +76,12 @@ const char *get_systemfile_dir(void); */ const char *get_persconffile_dir(void); +/* + * Create the directory that holds personal configuration files, if + * necessary. If we attempted to create it, and failed, return -1 and + * set "*pf_dir_path_return" to the pathname of the directory; otherwise, + * return 0. + */ +int create_persconffile_dir(const char **pf_dir_path_return); + #endif /* FILESYSTEM_H */ |