23#define DEFAULT_PROFILE "Default"
62WS_DLL_PUBLIC
const char *get_progfile_dir(
void);
74WS_DLL_PUBLIC
char *get_executable_path(
const char *filename);
81WS_DLL_PUBLIC
const char *get_plugins_dir(
void);
86WS_DLL_PUBLIC
const char *get_plugins_dir_with_version(
void);
91WS_DLL_PUBLIC
const char *get_plugins_pers_dir(
void);
96WS_DLL_PUBLIC
const char *get_plugins_pers_dir_with_version(
void);
103WS_DLL_PUBLIC
const char *get_extcap_dir(
void);
108WS_DLL_PUBLIC
const char *get_extcap_pers_dir(
void);
114WS_DLL_PUBLIC
bool running_in_build_directory(
void);
120WS_DLL_PUBLIC
const char *get_datafile_dir(
void);
129WS_DLL_PUBLIC
char *get_datafile_path(
const char *filename);
135WS_DLL_PUBLIC
const char *get_doc_dir(
void);
144WS_DLL_PUBLIC
char *get_docfile_path(
const char *filename);
153WS_DLL_PUBLIC
char *doc_file_url(
const char *filename);
161WS_DLL_PUBLIC
const char *get_systemfile_dir(
void);
167WS_DLL_PUBLIC
void set_profile_name(
const char *profilename);
173WS_DLL_PUBLIC
const char *get_profile_name(
void);
178WS_DLL_PUBLIC
bool is_default_profile(
void);
183WS_DLL_PUBLIC
bool has_global_profiles(
void);
189WS_DLL_PUBLIC
char *get_profiles_dir(
void);
195WS_DLL_PUBLIC
char *get_profile_dir(
const char *profilename,
bool is_global);
200WS_DLL_PUBLIC
int create_profiles_dir(
char **pf_dir_path_return);
206WS_DLL_PUBLIC
char *get_global_profiles_dir(
void);
213WS_DLL_PUBLIC
void profile_store_persconffiles(
bool store);
219WS_DLL_PUBLIC
void profile_register_persconffile(
const char *filename);
224WS_DLL_PUBLIC
bool profile_exists(
const char *profilename,
bool global);
233WS_DLL_PUBLIC
int create_persconffile_profile(
const char *profilename,
234 char **pf_dir_path_return);
239WS_DLL_PUBLIC
const GHashTable * allowed_profile_filenames(
void);
248WS_DLL_PUBLIC
int delete_persconffile_profile(
const char *profilename,
249 char **pf_dir_path_return);
254WS_DLL_PUBLIC
int rename_persconffile_profile(
const char *fromname,
const char *toname,
255 char **pf_from_dir_path_return,
256 char **pf_to_dir_path_return);
261WS_DLL_PUBLIC
int copy_persconffile_profile(
const char *toname,
const char *fromname,
263 char **pf_filename_return,
264 char **pf_to_dir_path_return,
265 char **pf_from_dir_path_return);
274WS_DLL_PUBLIC
int create_persconffile_dir(
char **pf_dir_path_return);
284WS_DLL_PUBLIC
char *get_persconffile_path(
const char *filename,
bool from_profile);
289WS_DLL_PUBLIC
void set_persconffile_dir(
const char *p);
297WS_DLL_PUBLIC
const char *get_persdatafile_dir(
void);
302WS_DLL_PUBLIC
void set_persdatafile_dir(
const char *p);
307WS_DLL_PUBLIC WS_RETNONNULL
const char *get_current_working_dir(
void);
313WS_DLL_PUBLIC
const char *file_open_error_message(
int err,
bool for_writing);
319WS_DLL_PUBLIC
const char *file_write_error_message(
int err);
324WS_DLL_PUBLIC
const char *get_basename(
const char *);
331WS_DLL_PUBLIC
char *find_last_pathname_separator(
const char *path);
338WS_DLL_PUBLIC
char *get_dirname(
char *);
351WS_DLL_PUBLIC
int test_for_directory(
const char *);
364WS_DLL_PUBLIC
int test_for_fifo(
const char *);
371WS_DLL_PUBLIC
bool test_for_regular_file(
const char *);
376WS_DLL_PUBLIC
bool file_exists(
const char *fname);
382WS_DLL_PUBLIC
bool config_file_exists_with_entries(
const char *fname,
char comment_char);
387WS_DLL_PUBLIC
bool files_identical(
const char *fname1,
const char *fname2);
392WS_DLL_PUBLIC
bool file_needs_reopen(
int fd,
const char* filename);
402WS_DLL_PUBLIC
bool write_file_binary_mode(
const char *filename,
403 const void *content,
size_t content_len);
414WS_DLL_PUBLIC
bool copy_file_binary_mode(
const char *from_filename,
415 const char *to_filename);
427WS_DLL_PUBLIC
char* data_file_url(
const char *filename);
432WS_DLL_PUBLIC
void free_progdirs(
void);
WS_DLL_PUBLIC char * configuration_init(const char *arg0, const char *namespace_name)
Definition filesystem.c:974
WS_DLL_PUBLIC bool is_packet_configuration_namespace(void)
Definition filesystem.c:333
WS_DLL_PUBLIC const char * get_configuration_namespace(void)
Definition filesystem.c:328