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_pers_dir(
void);
93 WS_DLL_PUBLIC
const char *get_extcap_dir(
void);
98 WS_DLL_PUBLIC
const char *get_extcap_pers_dir(
void);
104 WS_DLL_PUBLIC
bool running_in_build_directory(
void);
110 WS_DLL_PUBLIC
const char *get_datafile_dir(
void);
119 WS_DLL_PUBLIC
char *get_datafile_path(
const char *filename);
125 WS_DLL_PUBLIC
const char *get_doc_dir(
void);
134 WS_DLL_PUBLIC
char *get_docfile_path(
const char *filename);
143 WS_DLL_PUBLIC
char *doc_file_url(
const char *filename);
151 WS_DLL_PUBLIC
const char *get_systemfile_dir(
void);
157 WS_DLL_PUBLIC
void set_profile_name(
const char *profilename);
163 WS_DLL_PUBLIC
const char *get_profile_name(
void);
168 WS_DLL_PUBLIC
bool is_default_profile(
void);
173 WS_DLL_PUBLIC
bool has_global_profiles(
void);
179 WS_DLL_PUBLIC
char *get_profiles_dir(
void);
185 WS_DLL_PUBLIC
char *get_profile_dir(
const char *profilename,
bool is_global);
190 WS_DLL_PUBLIC
int create_profiles_dir(
char **pf_dir_path_return);
196 WS_DLL_PUBLIC
char *get_global_profiles_dir(
void);
203 WS_DLL_PUBLIC
void profile_store_persconffiles(
bool store);
209 WS_DLL_PUBLIC
void profile_register_persconffile(
const char *filename);
214 WS_DLL_PUBLIC
bool profile_exists(
const char *profilename,
bool global);
223 WS_DLL_PUBLIC
int create_persconffile_profile(
const char *profilename,
224 char **pf_dir_path_return);
229 WS_DLL_PUBLIC
const GHashTable * allowed_profile_filenames(
void);
238 WS_DLL_PUBLIC
int delete_persconffile_profile(
const char *profilename,
239 char **pf_dir_path_return);
244 WS_DLL_PUBLIC
int rename_persconffile_profile(
const char *fromname,
const char *toname,
245 char **pf_from_dir_path_return,
246 char **pf_to_dir_path_return);
251 WS_DLL_PUBLIC
int copy_persconffile_profile(
const char *toname,
const char *fromname,
253 char **pf_filename_return,
254 char **pf_to_dir_path_return,
255 char **pf_from_dir_path_return);
264 WS_DLL_PUBLIC
int create_persconffile_dir(
char **pf_dir_path_return);
274 WS_DLL_PUBLIC
char *get_persconffile_path(
const char *filename,
bool from_profile);
279 WS_DLL_PUBLIC
void set_persconffile_dir(
const char *p);
287 WS_DLL_PUBLIC
const char *get_persdatafile_dir(
void);
292 WS_DLL_PUBLIC
void set_persdatafile_dir(
const char *p);
298 WS_DLL_PUBLIC
const char *file_open_error_message(
int err,
bool for_writing);
304 WS_DLL_PUBLIC
const char *file_write_error_message(
int err);
309 WS_DLL_PUBLIC
const char *get_basename(
const char *);
316 WS_DLL_PUBLIC
char *find_last_pathname_separator(
const char *path);
323 WS_DLL_PUBLIC
char *get_dirname(
char *);
336 WS_DLL_PUBLIC
int test_for_directory(
const char *);
349 WS_DLL_PUBLIC
int test_for_fifo(
const char *);
356 WS_DLL_PUBLIC
bool test_for_regular_file(
const char *);
361 WS_DLL_PUBLIC
bool file_exists(
const char *fname);
367 WS_DLL_PUBLIC
bool config_file_exists_with_entries(
const char *fname,
char comment_char);
372 WS_DLL_PUBLIC
bool files_identical(
const char *fname1,
const char *fname2);
377 WS_DLL_PUBLIC
bool file_needs_reopen(
int fd,
const char* filename);
387 WS_DLL_PUBLIC
bool write_file_binary_mode(
const char *filename,
388 const void *content,
size_t content_len);
399 WS_DLL_PUBLIC
bool copy_file_binary_mode(
const char *from_filename,
400 const char *to_filename);
412 WS_DLL_PUBLIC
char* data_file_url(
const char *filename);
417 WS_DLL_PUBLIC
void free_progdirs(
void);
WS_DLL_PUBLIC char * configuration_init(const char *arg0, const char *namespace_name)
Definition: filesystem.c:941
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