aboutsummaryrefslogtreecommitdiffstats
path: root/epan/filesystem.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-10-23 05:01:02 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-10-23 05:01:02 +0000
commit4da81b99c3d1096c67b26e0d6f7a4f6557717655 (patch)
tree6b6ced95b0d95cc2f7243f2ff7546552b12f4dfa /epan/filesystem.h
parentaedae5e4abbc93cc5945b1c448a4c1ce26ac9479 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4065 f5534014-38df-0310-8fa8-9805f1628bb7
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 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 */