diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-11-19 19:45:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-11-19 19:45:38 +0000 |
commit | 06098fce7bcac3e8267cba5c7d74c1ea3c7efb99 (patch) | |
tree | 660e2944ca2d12d551242dc5c60cbbb0871a1107 /wsutil/filesystem.h | |
parent | 935a4debb1b230eb4106e5e056390ca598f4f91b (diff) |
Add routines to set the personal file directory paths (personal
configuration file directory and directory in which to save captures),
have the routine to parse -P options use them, and move that routine to
libui.
Have that routine just return a gboolean.
svn path=/trunk/; revision=53435
Diffstat (limited to 'wsutil/filesystem.h')
-rw-r--r-- | wsutil/filesystem.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wsutil/filesystem.h b/wsutil/filesystem.h index 4915a0ec56..5e6082889a 100644 --- a/wsutil/filesystem.h +++ b/wsutil/filesystem.h @@ -197,6 +197,11 @@ WS_DLL_PUBLIC int create_persconffile_dir(char **pf_dir_path_return); WS_DLL_PUBLIC char *get_persconffile_path(const char *filename, gboolean from_profile); /* + * Set the path of the personal configuration file directory. + */ +WS_DLL_PUBLIC void set_persconffile_dir(const char *p); + +/* * Get the (default) directory in which personal data is stored. * * On Win32, this is the "My Documents" folder in the personal profile. @@ -205,9 +210,9 @@ WS_DLL_PUBLIC char *get_persconffile_path(const char *filename, gboolean from_pr WS_DLL_PUBLIC const char *get_persdatafile_dir(void); /* - * process command line option belonging to the filesystem settings + * Set the path of the directory in which personal data is stored. */ -WS_DLL_PUBLIC int filesystem_opt(int opt, const char *optstr); +WS_DLL_PUBLIC void set_persdatafile_dir(const char *p); /* * Return an error message for UNIX-style errno indications on open or |