23#define DEFAULT_PROFILE "Default"
45WS_DLL_PUBLIC
const char *get_progfile_dir(
void);
57WS_DLL_PUBLIC
char *get_executable_path(
const char *filename);
64WS_DLL_PUBLIC
const char *get_plugins_dir(
void);
69WS_DLL_PUBLIC
const char *get_plugins_dir_with_version(
void);
74WS_DLL_PUBLIC
const char *get_plugins_pers_dir(
void);
79WS_DLL_PUBLIC
const char *get_plugins_pers_dir_with_version(
void);
86WS_DLL_PUBLIC
const char *get_extcap_dir(
void);
91WS_DLL_PUBLIC
const char *get_extcap_pers_dir(
void);
97WS_DLL_PUBLIC
bool running_in_build_directory(
void);
103WS_DLL_PUBLIC
const char *get_datafile_dir(
void);
112WS_DLL_PUBLIC
char *get_datafile_path(
const char *filename);
118WS_DLL_PUBLIC
const char *get_doc_dir(
void);
127WS_DLL_PUBLIC
char *get_docfile_path(
const char *filename);
136WS_DLL_PUBLIC
char *doc_file_url(
const char *filename);
144WS_DLL_PUBLIC
const char *get_systemfile_dir(
void);
150WS_DLL_PUBLIC
void set_profile_name(
const char *profilename);
156WS_DLL_PUBLIC
const char *get_profile_name(
void);
161WS_DLL_PUBLIC
bool is_default_profile(
void);
166WS_DLL_PUBLIC
bool has_global_profiles(
void);
172WS_DLL_PUBLIC
char *get_profiles_dir(
void);
178WS_DLL_PUBLIC
char *get_profile_dir(
const char *profilename,
bool is_global);
183WS_DLL_PUBLIC
int create_profiles_dir(
char **pf_dir_path_return);
189WS_DLL_PUBLIC
char *get_global_profiles_dir(
void);
196WS_DLL_PUBLIC
void profile_store_persconffiles(
bool store);
202WS_DLL_PUBLIC
void profile_register_persconffile(
const char *filename);
207WS_DLL_PUBLIC
bool profile_exists(
const char *profilename,
bool global);
216WS_DLL_PUBLIC
int create_persconffile_profile(
const char *profilename,
217 char **pf_dir_path_return);
222WS_DLL_PUBLIC
const GHashTable * allowed_profile_filenames(
void);
231WS_DLL_PUBLIC
int delete_persconffile_profile(
const char *profilename,
232 char **pf_dir_path_return);
237WS_DLL_PUBLIC
int rename_persconffile_profile(
const char *fromname,
const char *toname,
238 char **pf_from_dir_path_return,
239 char **pf_to_dir_path_return);
244WS_DLL_PUBLIC
int copy_persconffile_profile(
const char *toname,
const char *fromname,
246 char **pf_filename_return,
247 char **pf_to_dir_path_return,
248 char **pf_from_dir_path_return);
257WS_DLL_PUBLIC
int create_persconffile_dir(
char **pf_dir_path_return);
267WS_DLL_PUBLIC
char *get_persconffile_path(
const char *filename,
bool from_profile);
272WS_DLL_PUBLIC
void set_persconffile_dir(
const char *p);
280WS_DLL_PUBLIC
const char *get_persdatafile_dir(
void);
285WS_DLL_PUBLIC
void set_persdatafile_dir(
const char *p);
290WS_DLL_PUBLIC WS_RETNONNULL
const char *get_current_working_dir(
void);
296WS_DLL_PUBLIC
const char *file_open_error_message(
int err,
bool for_writing);
302WS_DLL_PUBLIC
const char *file_write_error_message(
int err);
307WS_DLL_PUBLIC
const char *get_basename(
const char *);
314WS_DLL_PUBLIC
char *find_last_pathname_separator(
const char *path);
321WS_DLL_PUBLIC
char *get_dirname(
char *);
334WS_DLL_PUBLIC
int test_for_directory(
const char *);
347WS_DLL_PUBLIC
int test_for_fifo(
const char *);
354WS_DLL_PUBLIC
bool test_for_regular_file(
const char *);
359WS_DLL_PUBLIC
bool file_exists(
const char *fname);
365WS_DLL_PUBLIC
bool config_file_exists_with_entries(
const char *fname,
char comment_char);
370WS_DLL_PUBLIC
bool files_identical(
const char *fname1,
const char *fname2);
375WS_DLL_PUBLIC
bool file_needs_reopen(
int fd,
const char* filename);
385WS_DLL_PUBLIC
bool write_file_binary_mode(
const char *filename,
386 const void *content,
size_t content_len);
397WS_DLL_PUBLIC
bool copy_file_binary_mode(
const char *from_filename,
398 const char *to_filename);
410WS_DLL_PUBLIC
char* data_file_url(
const char *filename);
415WS_DLL_PUBLIC
void free_progdirs(
void);
WS_DLL_PUBLIC char * configuration_init(const char *arg0)
Definition filesystem.c:930