23#define DEFAULT_PROFILE "Default"
43WS_DLL_PUBLIC
const char *get_progfile_dir(
void);
55WS_DLL_PUBLIC
char *get_executable_path(
const char *filename);
62WS_DLL_PUBLIC
const char *get_plugins_dir(
void);
67WS_DLL_PUBLIC
const char *get_plugins_dir_with_version(
void);
72WS_DLL_PUBLIC
const char *get_plugins_pers_dir(
void);
77WS_DLL_PUBLIC
const char *get_plugins_pers_dir_with_version(
void);
84WS_DLL_PUBLIC
const char *get_extcap_dir(
void);
89WS_DLL_PUBLIC
const char *get_extcap_pers_dir(
void);
95WS_DLL_PUBLIC
bool running_in_build_directory(
void);
101WS_DLL_PUBLIC
const char *get_datafile_dir(
void);
110WS_DLL_PUBLIC
char *get_datafile_path(
const char *filename);
116WS_DLL_PUBLIC
const char *get_doc_dir(
void);
125WS_DLL_PUBLIC
char *get_docfile_path(
const char *filename);
134WS_DLL_PUBLIC
char *doc_file_url(
const char *filename);
142WS_DLL_PUBLIC
const char *get_systemfile_dir(
void);
148WS_DLL_PUBLIC
void set_profile_name(
const char *profilename);
154WS_DLL_PUBLIC
const char *get_profile_name(
void);
159WS_DLL_PUBLIC
bool is_default_profile(
void);
164WS_DLL_PUBLIC
bool has_global_profiles(
void);
170WS_DLL_PUBLIC
char *get_profiles_dir(
void);
176WS_DLL_PUBLIC
char *get_profile_dir(
const char *profilename,
bool is_global);
181WS_DLL_PUBLIC
int create_profiles_dir(
char **pf_dir_path_return);
187WS_DLL_PUBLIC
char *get_global_profiles_dir(
void);
194WS_DLL_PUBLIC
void profile_store_persconffiles(
bool store);
200WS_DLL_PUBLIC
void profile_register_persconffile(
const char *filename);
205WS_DLL_PUBLIC
bool profile_exists(
const char *profilename,
bool global);
214WS_DLL_PUBLIC
int create_persconffile_profile(
const char *profilename,
215 char **pf_dir_path_return);
220WS_DLL_PUBLIC
const GHashTable * allowed_profile_filenames(
void);
229WS_DLL_PUBLIC
int delete_persconffile_profile(
const char *profilename,
230 char **pf_dir_path_return);
235WS_DLL_PUBLIC
int rename_persconffile_profile(
const char *fromname,
const char *toname,
236 char **pf_from_dir_path_return,
237 char **pf_to_dir_path_return);
242WS_DLL_PUBLIC
int copy_persconffile_profile(
const char *toname,
const char *fromname,
244 char **pf_filename_return,
245 char **pf_to_dir_path_return,
246 char **pf_from_dir_path_return);
255WS_DLL_PUBLIC
int create_persconffile_dir(
char **pf_dir_path_return);
265WS_DLL_PUBLIC
char *get_persconffile_path(
const char *filename,
bool from_profile);
270WS_DLL_PUBLIC
void set_persconffile_dir(
const char *p);
278WS_DLL_PUBLIC
const char *get_persdatafile_dir(
void);
283WS_DLL_PUBLIC
void set_persdatafile_dir(
const char *p);
288WS_DLL_PUBLIC WS_RETNONNULL
const char *get_current_working_dir(
void);
294WS_DLL_PUBLIC
const char *file_open_error_message(
int err,
bool for_writing);
300WS_DLL_PUBLIC
const char *file_write_error_message(
int err);
305WS_DLL_PUBLIC
const char *get_basename(
const char *);
312WS_DLL_PUBLIC
char *find_last_pathname_separator(
const char *path);
319WS_DLL_PUBLIC
char *get_dirname(
char *);
332WS_DLL_PUBLIC
int test_for_directory(
const char *);
345WS_DLL_PUBLIC
int test_for_fifo(
const char *);
352WS_DLL_PUBLIC
bool test_for_regular_file(
const char *);
357WS_DLL_PUBLIC
bool file_exists(
const char *fname);
363WS_DLL_PUBLIC
bool config_file_exists_with_entries(
const char *fname,
char comment_char);
368WS_DLL_PUBLIC
bool files_identical(
const char *fname1,
const char *fname2);
373WS_DLL_PUBLIC
bool file_needs_reopen(
int fd,
const char* filename);
383WS_DLL_PUBLIC
bool write_file_binary_mode(
const char *filename,
384 const void *content,
size_t content_len);
395WS_DLL_PUBLIC
bool copy_file_binary_mode(
const char *from_filename,
396 const char *to_filename);
408WS_DLL_PUBLIC
char* data_file_url(
const char *filename);
413WS_DLL_PUBLIC
void free_progdirs(
void);
WS_DLL_PUBLIC char * configuration_init(const char *arg0)
Definition filesystem.c:930