14 #include "ws_symbol_export.h" 15 #include "ws_attributes.h" 24 #define DEFAULT_PROFILE "Default" 32 WS_DLL_PUBLIC
char *init_progfile_dir(
const char *arg0);
37 WS_DLL_PUBLIC
const char *get_progfile_dir(
void);
44 WS_DLL_PUBLIC
const char *get_plugins_dir(
void);
49 WS_DLL_PUBLIC
const char *get_plugins_dir_with_version(
void);
54 WS_DLL_PUBLIC
const char *get_plugins_pers_dir(
void);
59 WS_DLL_PUBLIC
const char *get_plugins_pers_dir_with_version(
void);
66 WS_DLL_PUBLIC
const char *get_extcap_dir(
void);
72 WS_DLL_PUBLIC gboolean running_in_build_directory(
void);
78 WS_DLL_PUBLIC
const char *get_datafile_dir(
void);
87 WS_DLL_PUBLIC
char *get_datafile_path(
const char *filename);
95 WS_DLL_PUBLIC
const char *get_systemfile_dir(
void);
101 WS_DLL_PUBLIC
void set_profile_name(
const gchar *profilename);
107 WS_DLL_PUBLIC
const char *get_profile_name(
void);
112 WS_DLL_PUBLIC gboolean is_default_profile(
void);
117 WS_DLL_PUBLIC gboolean has_global_profiles(
void);
123 WS_DLL_PUBLIC
char *get_profiles_dir(
void);
128 WS_DLL_PUBLIC
int create_profiles_dir(
char **pf_dir_path_return);
134 WS_DLL_PUBLIC
char *get_global_profiles_dir(
void);
141 WS_DLL_PUBLIC
void profile_store_persconffiles(gboolean store);
146 WS_DLL_PUBLIC gboolean profile_exists(
const gchar *profilename, gboolean global);
155 WS_DLL_PUBLIC
int create_persconffile_profile(
const char *profilename,
156 char **pf_dir_path_return);
165 WS_DLL_PUBLIC
int delete_persconffile_profile(
const char *profilename,
166 char **pf_dir_path_return);
171 WS_DLL_PUBLIC
int rename_persconffile_profile(
const char *fromname,
const char *toname,
172 char **pf_from_dir_path_return,
173 char **pf_to_dir_path_return);
178 WS_DLL_PUBLIC
int copy_persconffile_profile(
const char *toname,
const char *fromname,
179 gboolean from_global,
180 char **pf_filename_return,
181 char **pf_to_dir_path_return,
182 char **pf_from_dir_path_return);
191 WS_DLL_PUBLIC
int create_persconffile_dir(
char **pf_dir_path_return);
201 WS_DLL_PUBLIC
char *get_persconffile_path(
const char *filename, gboolean from_profile);
206 WS_DLL_PUBLIC
void set_persconffile_dir(
const char *p);
214 WS_DLL_PUBLIC
const char *get_persdatafile_dir(
void);
219 WS_DLL_PUBLIC
void set_persdatafile_dir(
const char *p);
225 WS_DLL_PUBLIC
const char *file_open_error_message(
int err, gboolean for_writing);
231 WS_DLL_PUBLIC
const char *file_write_error_message(
int err);
236 WS_DLL_PUBLIC
const char *get_basename(
const char *);
243 WS_DLL_PUBLIC
char *find_last_pathname_separator(
const char *path);
250 WS_DLL_PUBLIC
char *get_dirname(
char *);
263 WS_DLL_PUBLIC
int test_for_directory(
const char *);
276 WS_DLL_PUBLIC
int test_for_fifo(
const char *);
281 WS_DLL_PUBLIC gboolean file_exists(
const char *fname);
286 WS_DLL_PUBLIC gboolean files_identical(
const char *fname1,
const char *fname2);
297 WS_DLL_PUBLIC gboolean copy_file_binary_mode(
const char *from_filename,
298 const char *to_filename);
310 WS_DLL_PUBLIC gchar* data_file_url(
const gchar *filename);
315 WS_DLL_PUBLIC
void free_progdirs(
void);