2004-12-23 12:58:39 +00:00
|
|
|
#ifndef FILE_H
|
|
|
|
#define FILE_H
|
|
|
|
|
|
|
|
#include "bygfoot.h"
|
2005-01-09 20:21:22 +00:00
|
|
|
#include "player_struct.h"
|
2005-03-03 12:46:48 +00:00
|
|
|
#include "user_struct.h"
|
2004-12-30 16:48:19 +00:00
|
|
|
|
2005-07-18 16:18:39 +00:00
|
|
|
#ifdef G_OS_UNIX
|
|
|
|
#define file_mkdir(dirname) mkdir(dirname, (S_IRUSR | S_IWUSR | S_IXUSR))
|
|
|
|
#else
|
|
|
|
#define file_mkdir(dirname) mkdir(dirname)
|
|
|
|
#endif
|
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
void
|
|
|
|
file_add_support_directory_recursive (const gchar *directory);
|
|
|
|
|
|
|
|
gchar*
|
2005-04-09 19:18:28 +00:00
|
|
|
file_find_support_file (const gchar *filename, gboolean warning);
|
2004-12-30 16:48:19 +00:00
|
|
|
|
|
|
|
gboolean
|
2005-03-03 12:46:48 +00:00
|
|
|
file_get_next_opt_line(FILE *fil, gchar *opt_name, gchar *opt_value);
|
2004-12-23 12:58:39 +00:00
|
|
|
|
2005-04-04 10:36:04 +00:00
|
|
|
void
|
|
|
|
file_load_opt_file(const gchar *filename, OptionList *optionlist);
|
|
|
|
|
|
|
|
void
|
|
|
|
file_save_opt_file(const gchar *filename, OptionList *optionlist);
|
|
|
|
|
2004-12-23 12:58:39 +00:00
|
|
|
GPtrArray*
|
2005-04-04 10:36:04 +00:00
|
|
|
file_dir_get_contents(const gchar *dir_name, const gchar *prefix, const gchar *suffix);
|
2004-12-23 12:58:39 +00:00
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
gboolean
|
2005-01-09 20:21:22 +00:00
|
|
|
file_my_fopen(const gchar *filename, gchar *bits, FILE **fil, gboolean abort_program);
|
|
|
|
|
2005-04-09 19:18:28 +00:00
|
|
|
GPtrArray*
|
|
|
|
file_get_country_files(void);
|
2005-04-04 10:36:04 +00:00
|
|
|
|
2005-01-09 20:21:22 +00:00
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
file_load_conf_files(void);
|
2005-01-09 20:21:22 +00:00
|
|
|
|
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
file_load_user_conf_file(User *user);
|
2005-01-09 20:21:22 +00:00
|
|
|
|
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
file_check_home_dir(void);
|
2005-03-03 12:46:48 +00:00
|
|
|
|
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
file_check_home_dir_copy_conf_files(void);
|
2005-01-09 20:21:22 +00:00
|
|
|
|
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
file_check_home_dir_copy_definition_files(void);
|
|
|
|
|
2005-04-20 17:56:31 +00:00
|
|
|
void
|
|
|
|
file_check_home_dir_copy_definition_dir(const gchar *dirname, const gchar *basename);
|
|
|
|
|
2005-04-04 10:36:04 +00:00
|
|
|
gboolean
|
|
|
|
file_my_system(const gchar *command);
|
|
|
|
|
|
|
|
const gchar*
|
|
|
|
file_get_first_support_dir(void);
|
2004-12-23 12:58:39 +00:00
|
|
|
|
2005-03-03 12:46:48 +00:00
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
file_compress_files(const gchar *destfile, const gchar *prefix);
|
2005-03-03 12:46:48 +00:00
|
|
|
|
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
file_decompress(const gchar *filename);
|
2005-03-03 12:46:48 +00:00
|
|
|
|
2005-06-20 12:46:57 +00:00
|
|
|
GPtrArray*
|
|
|
|
file_get_name_files(void);
|
|
|
|
|
2005-07-18 16:18:39 +00:00
|
|
|
void
|
|
|
|
file_remove_files(const gchar *files);
|
|
|
|
|
|
|
|
void
|
|
|
|
file_copy_file(const gchar *source_file, const gchar *dest_file);
|
|
|
|
|
2004-12-23 12:58:39 +00:00
|
|
|
#endif
|