bygfoot/src/file.h

63 lines
1.2 KiB
C
Raw Normal View History

2004-12-23 13:58:39 +01:00
#ifndef FILE_H
#define FILE_H
#include "bygfoot.h"
2005-01-09 21:21:22 +01:00
#include "player_struct.h"
#include "user_struct.h"
void
file_add_support_directory_recursive (const gchar *directory);
gchar*
2005-04-09 21:18:28 +02:00
file_find_support_file (const gchar *filename, gboolean warning);
gboolean
file_get_next_opt_line(FILE *fil, gchar *opt_name, gchar *opt_value);
2004-12-23 13:58:39 +01:00
2005-04-04 12:36:04 +02:00
void
file_load_opt_file(const gchar *filename, OptionList *optionlist);
void
file_save_opt_file(const gchar *filename, OptionList *optionlist);
2004-12-23 13:58:39 +01:00
GPtrArray*
2005-04-04 12:36:04 +02:00
file_dir_get_contents(const gchar *dir_name, const gchar *prefix, const gchar *suffix);
2004-12-23 13:58:39 +01:00
void
file_get_player_names(gint number_of_names);
gboolean
2005-01-09 21:21:22 +01:00
file_my_fopen(const gchar *filename, gchar *bits, FILE **fil, gboolean abort_program);
2005-04-09 21:18:28 +02:00
GPtrArray*
file_get_country_files(void);
2005-04-04 12:36:04 +02:00
2005-01-09 21:21:22 +01:00
void
2005-04-04 12:36:04 +02:00
file_load_conf_files(void);
2005-01-09 21:21:22 +01:00
void
2005-04-04 12:36:04 +02:00
file_load_user_conf_file(User *user);
2005-01-09 21:21:22 +01:00
void
2005-04-04 12:36:04 +02:00
file_check_home_dir(void);
void
2005-04-04 12:36:04 +02:00
file_check_home_dir_copy_conf_files(void);
2005-01-09 21:21:22 +01:00
void
2005-04-04 12:36:04 +02:00
file_check_home_dir_copy_definition_files(void);
gboolean
file_my_system(const gchar *command);
const gchar*
file_get_first_support_dir(void);
2004-12-23 13:58:39 +01:00
void
2005-04-04 12:36:04 +02:00
file_compress_files(const gchar *destfile, const gchar *prefix);
void
2005-04-04 12:36:04 +02:00
file_decompress(const gchar *filename);
2004-12-23 13:58:39 +01:00
#endif