bygfoot/src/free.h

135 lines
2.4 KiB
C
Raw Normal View History

2005-10-20 17:45:00 +02:00
/*
Bygfoot Football Manager -- a small and simple GTK2-based
football management game.
http://bygfoot.sourceforge.net
Copyright (C) 2005 Gyözö Both (gyboth@bygfoot.com)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
2004-12-23 13:58:39 +01:00
#ifndef FREE_H
#define FREE_H
#include "bygfoot.h"
#include "cup_struct.h"
#include "league_struct.h"
2005-01-09 21:21:22 +01:00
#include "live_game_struct.h"
#include "name_struct.h"
#include "player_struct.h"
#include "team_struct.h"
#include "user_struct.h"
2005-10-09 11:35:44 +02:00
#define free_gchar_ptr(string) {g_free(string); string = NULL;}
void
free_g_array(GArray **array);
2005-01-09 21:21:22 +01:00
void
free_g_ptr_array(GPtrArray **array);
void
free_g_string(GString **string);
2004-12-23 13:58:39 +01:00
void
free_memory(void);
void
2005-04-04 12:36:04 +02:00
free_users(gboolean reset);
void
free_user(User *user);
2004-12-23 13:58:39 +01:00
void
2005-04-06 10:49:55 +02:00
free_country(gboolean reset);
2004-12-23 13:58:39 +01:00
void
2005-04-04 12:36:04 +02:00
free_leagues_array(GArray **leagues, gboolean reset);
2004-12-23 13:58:39 +01:00
void
free_league(League *league);
void
2005-04-10 18:34:27 +02:00
free_teams_array(GArray **teams, gboolean reset);
2004-12-23 13:58:39 +01:00
void
free_team(Team *team);
void
2005-04-04 12:36:04 +02:00
free_cups_array(GArray **cups, gboolean reset);
void
free_cup(Cup *cup);
void
free_cup_choose_team(CupChooseTeam *cup_choose_team);
void
free_variables(void);
void
2005-10-05 21:59:37 +02:00
free_gchar_array(GPtrArray **array);
2005-07-08 11:26:00 +02:00
void
free_player_array(GArray **players);
void
free_player(Player *pl);
2005-01-09 21:21:22 +01:00
void
free_live_game(LiveGame *match);
2005-07-01 22:51:46 +02:00
void
free_lg_commentary(gboolean reset);
void
2005-03-24 08:42:24 +01:00
free_option_list(OptionList *optionlist, gboolean reset);
2005-03-18 23:03:23 +01:00
void
free_event(Event *event);
2005-04-04 12:36:04 +02:00
void
free_support_dirs(void);
2005-04-10 18:34:27 +02:00
void
2005-04-13 15:01:59 +02:00
free_table(Table *table);
2005-04-10 18:34:27 +02:00
2005-04-29 21:48:02 +02:00
void
free_league_stats(LeagueStat *stats);
2005-05-01 12:16:14 +02:00
void
2005-05-02 16:39:30 +02:00
free_season_stats(gboolean reset);
2005-05-01 12:16:14 +02:00
2005-05-16 09:09:53 +02:00
void
free_transfer_list(void);
void
free_name_list(NameList *namelist, gboolean reset);
void
free_names(gboolean reset);
2005-08-20 21:39:36 +02:00
void
2005-08-21 21:58:51 +02:00
free_mmatches(GArray **mmatches, gboolean reset);
2005-08-20 21:39:36 +02:00
2005-10-24 22:50:48 +02:00
void
free_strategies(void);
2005-10-27 23:10:15 +02:00
void
free_bets(gboolean reset);
2004-12-23 13:58:39 +01:00
#endif