14 #include <wireshark.h>
23 #define DEFAULT_PROFILE "Default"
62 WS_DLL_PUBLIC
const char *get_progfile_dir(
void);
74 WS_DLL_PUBLIC
char *get_executable_path(
const char *filename);
81 WS_DLL_PUBLIC
const char *get_plugins_dir(
void);
86 WS_DLL_PUBLIC
const char *get_plugins_dir_with_version(
void);
91 WS_DLL_PUBLIC
const char *get_plugins_pers_dir(
void);
96 WS_DLL_PUBLIC
const char *get_plugins_pers_dir_with_version(
void);
103 WS_DLL_PUBLIC
const char *get_extcap_dir(
void);
108 WS_DLL_PUBLIC
const char *get_extcap_pers_dir(
void);
114 WS_DLL_PUBLIC
bool running_in_build_directory(
void);
120 WS_DLL_PUBLIC
const char *get_datafile_dir(
void);
129 WS_DLL_PUBLIC
char *get_datafile_path(
const char *filename);
135 WS_DLL_PUBLIC
const char *get_doc_dir(
void);
144 WS_DLL_PUBLIC
char *get_docfile_path(
const char *filename);
153 WS_DLL_PUBLIC
char *doc_file_url(
const char *filename);
161 WS_DLL_PUBLIC
const char *get_systemfile_dir(
void);
167 WS_DLL_PUBLIC
void set_profile_name(
const char *profilename);
173 WS_DLL_PUBLIC
const char *get_profile_name(
void);
178 WS_DLL_PUBLIC
bool is_default_profile(
void);
183 WS_DLL_PUBLIC
bool has_global_profiles(
void);
189 WS_DLL_PUBLIC
char *get_profiles_dir(
void);
195 WS_DLL_PUBLIC
char *get_profile_dir(
const char *profilename,
bool is_global);
200 WS_DLL_PUBLIC
int create_profiles_dir(
char **pf_dir_path_return);
206 WS_DLL_PUBLIC
char *get_global_profiles_dir(
void);
213 WS_DLL_PUBLIC
void profile_store_persconffiles(
bool store);
219 WS_DLL_PUBLIC
void profile_register_persconffile(
const char *filename);
224 WS_DLL_PUBLIC
bool profile_exists(
const char *profilename,
bool global);
233 WS_DLL_PUBLIC
int create_persconffile_profile(
const char *profilename,
234 char **pf_dir_path_return);
239 WS_DLL_PUBLIC
const GHashTable * allowed_profile_filenames(
void);
248 WS_DLL_PUBLIC
int delete_persconffile_profile(
const char *profilename,
249 char **pf_dir_path_return);
254 WS_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);
261 WS_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);
274 WS_DLL_PUBLIC
int create_persconffile_dir(
char **pf_dir_path_return);
284 WS_DLL_PUBLIC
char *get_persconffile_path(
const char *filename,
bool from_profile);
289 WS_DLL_PUBLIC
void set_persconffile_dir(
const char *p);
297 WS_DLL_PUBLIC
const char *get_persdatafile_dir(
void);
302 WS_DLL_PUBLIC
void set_persdatafile_dir(
const char *p);
308 WS_DLL_PUBLIC
const char *file_open_error_message(
int err,
bool for_writing);
314 WS_DLL_PUBLIC
const char *file_write_error_message(
int err);
319 WS_DLL_PUBLIC
const char *get_basename(
const char *);
326 WS_DLL_PUBLIC
char *find_last_pathname_separator(
const char *path);
333 WS_DLL_PUBLIC
char *get_dirname(
char *);
346 WS_DLL_PUBLIC
int test_for_directory(
const char *);
359 WS_DLL_PUBLIC
int test_for_fifo(
const char *);
366 WS_DLL_PUBLIC
bool test_for_regular_file(
const char *);
371 WS_DLL_PUBLIC
bool file_exists(
const char *fname);
377 WS_DLL_PUBLIC
bool config_file_exists_with_entries(
const char *fname,
char comment_char);
382 WS_DLL_PUBLIC
bool files_identical(
const char *fname1,
const char *fname2);
387 WS_DLL_PUBLIC
bool file_needs_reopen(
int fd,
const char* filename);
397 WS_DLL_PUBLIC
bool write_file_binary_mode(
const char *filename,
398 const void *content,
size_t content_len);
409 WS_DLL_PUBLIC
bool copy_file_binary_mode(
const char *from_filename,
410 const char *to_filename);
422 WS_DLL_PUBLIC
char* data_file_url(
const char *filename);
427 WS_DLL_PUBLIC
void free_progdirs(
void);
WS_DLL_PUBLIC char * configuration_init(const char *arg0, const char *namespace_name)
Definition: filesystem.c:948
WS_DLL_PUBLIC bool is_packet_configuration_namespace(void)
Definition: filesystem.c:332
WS_DLL_PUBLIC const char * get_configuration_namespace(void)
Definition: filesystem.c:327