aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/filesystem.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-06-20 15:12:48 -0400
committerAnders Broman <a.broman58@gmail.com>2017-06-20 19:45:03 +0000
commit4f1053c5464de12b635a8cf4128b78d51f6f3deb (patch)
treead6f1008934c656ab10c57ed9bb1884453ca59f0 /wsutil/filesystem.h
parentc919c625025afdca318a1a3413b268d00ad1985c (diff)
Qt: Create the user profiles dir at startup
Ensure the user profiles directory is created at startup so that users can put downloaded profiles without creating the directory. Change-Id: Ib06bb3055daef8fd9e78d7887ce56f8fe50e48bf Reviewed-on: https://code.wireshark.org/review/22275 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil/filesystem.h')
-rw-r--r--wsutil/filesystem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/wsutil/filesystem.h b/wsutil/filesystem.h
index 0edd0b2adc..f09e5ccaea 100644
--- a/wsutil/filesystem.h
+++ b/wsutil/filesystem.h
@@ -125,6 +125,11 @@ WS_DLL_PUBLIC gboolean has_global_profiles(void);
WS_DLL_PUBLIC char *get_profiles_dir(void);
/*
+ * Create the directory used to store configuration profile directories.
+ */
+WS_DLL_PUBLIC int create_profiles_dir(char **pf_dir_path_return);
+
+/*
* Get the directory used to store global configuration profile directories.
* Caller must free the returned string
*/