mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-02-07 23:28:51 +01:00
78 lines
1.6 KiB
C
78 lines
1.6 KiB
C
#ifndef FILE_H
|
|
#define FILE_H
|
|
|
|
#include "bygfoot.h"
|
|
#include "player_struct.h"
|
|
#include "user_struct.h"
|
|
|
|
#ifdef G_OS_UNIX
|
|
#define file_mkdir(dirname) mkdir(dirname, (S_IRUSR | S_IWUSR | S_IXUSR))
|
|
#else
|
|
#define file_mkdir(dirname) mkdir(dirname)
|
|
#endif
|
|
|
|
void
|
|
file_add_support_directory_recursive (const gchar *directory);
|
|
|
|
gchar*
|
|
file_find_support_file (const gchar *filename, gboolean warning);
|
|
|
|
gboolean
|
|
file_get_next_opt_line(FILE *fil, gchar *opt_name, gchar *opt_value);
|
|
|
|
void
|
|
file_load_opt_file(const gchar *filename, OptionList *optionlist);
|
|
|
|
void
|
|
file_save_opt_file(const gchar *filename, OptionList *optionlist);
|
|
|
|
GPtrArray*
|
|
file_dir_get_contents(const gchar *dir_name, const gchar *prefix, const gchar *suffix);
|
|
|
|
gboolean
|
|
file_my_fopen(const gchar *filename, gchar *bits, FILE **fil, gboolean abort_program);
|
|
|
|
GPtrArray*
|
|
file_get_country_files(void);
|
|
|
|
void
|
|
file_load_conf_files(void);
|
|
|
|
void
|
|
file_load_user_conf_file(User *user);
|
|
|
|
void
|
|
file_check_home_dir(void);
|
|
|
|
void
|
|
file_check_home_dir_copy_conf_files(void);
|
|
|
|
void
|
|
file_check_home_dir_copy_definition_files(void);
|
|
|
|
void
|
|
file_check_home_dir_copy_definition_dir(const gchar *dirname, const gchar *basename);
|
|
|
|
gboolean
|
|
file_my_system(const gchar *command);
|
|
|
|
const gchar*
|
|
file_get_first_support_dir(void);
|
|
|
|
void
|
|
file_compress_files(const gchar *destfile, const gchar *prefix);
|
|
|
|
void
|
|
file_decompress(const gchar *filename);
|
|
|
|
GPtrArray*
|
|
file_get_name_files(void);
|
|
|
|
void
|
|
file_remove_files(const gchar *files);
|
|
|
|
void
|
|
file_copy_file(const gchar *source_file, const gchar *dest_file);
|
|
|
|
#endif
|