2005-10-20 15:45:00 +00:00
|
|
|
/*
|
2005-11-26 16:52:51 +00:00
|
|
|
free.h
|
|
|
|
|
2005-10-20 15:45:00 +00: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 12:58:39 +00:00
|
|
|
#ifndef FREE_H
|
|
|
|
#define FREE_H
|
|
|
|
|
|
|
|
#include "bygfoot.h"
|
2004-12-30 16:48:19 +00:00
|
|
|
#include "cup_struct.h"
|
2005-12-01 11:50:54 +00:00
|
|
|
#include "job_struct.h"
|
2004-12-30 16:48:19 +00:00
|
|
|
#include "league_struct.h"
|
2005-01-09 20:21:22 +00:00
|
|
|
#include "live_game_struct.h"
|
2005-06-01 18:19:02 +00:00
|
|
|
#include "name_struct.h"
|
2004-12-30 16:48:19 +00:00
|
|
|
#include "player_struct.h"
|
|
|
|
#include "team_struct.h"
|
2005-03-03 12:46:48 +00:00
|
|
|
#include "user_struct.h"
|
2004-12-30 16:48:19 +00:00
|
|
|
|
2005-10-09 09:35:44 +00:00
|
|
|
#define free_gchar_ptr(string) {g_free(string); string = NULL;}
|
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
void
|
|
|
|
free_g_array(GArray **array);
|
|
|
|
|
2005-01-09 20:21:22 +00:00
|
|
|
void
|
|
|
|
free_g_ptr_array(GPtrArray **array);
|
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
void
|
|
|
|
free_g_string(GString **string);
|
2004-12-23 12:58:39 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
free_memory(void);
|
|
|
|
|
2005-03-03 12:46:48 +00:00
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
free_users(gboolean reset);
|
2005-03-03 12:46:48 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
free_user(User *user);
|
|
|
|
|
2004-12-23 12:58:39 +00:00
|
|
|
void
|
2005-12-01 11:50:54 +00:00
|
|
|
free_country(Country *cntry, gboolean reset);
|
2004-12-23 12:58:39 +00:00
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
free_leagues_array(GArray **leagues, gboolean reset);
|
2004-12-30 16:48:19 +00:00
|
|
|
|
2004-12-23 12:58:39 +00:00
|
|
|
void
|
|
|
|
free_league(League *league);
|
2008-11-20 20:20:18 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
free_joined_leagues(GArray **joined_leagues);
|
2004-12-23 12:58:39 +00:00
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
void
|
2005-04-10 16:34:27 +00:00
|
|
|
free_teams_array(GArray **teams, gboolean reset);
|
2004-12-30 16:48:19 +00:00
|
|
|
|
2004-12-23 12:58:39 +00:00
|
|
|
void
|
|
|
|
free_team(Team *team);
|
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
void
|
2005-04-04 10:36:04 +00:00
|
|
|
free_cups_array(GArray **cups, gboolean reset);
|
2004-12-30 16:48:19 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
free_cup(Cup *cup);
|
|
|
|
|
|
|
|
void
|
|
|
|
free_cup_choose_team(CupChooseTeam *cup_choose_team);
|
|
|
|
|
|
|
|
void
|
|
|
|
free_variables(void);
|
|
|
|
|
|
|
|
void
|
2005-10-05 19:59:37 +00:00
|
|
|
free_gchar_array(GPtrArray **array);
|
2004-12-30 16:48:19 +00:00
|
|
|
|
2005-07-08 09:26:00 +00:00
|
|
|
void
|
|
|
|
free_player_array(GArray **players);
|
|
|
|
|
2004-12-30 16:48:19 +00:00
|
|
|
void
|
|
|
|
free_player(Player *pl);
|
|
|
|
|
2005-01-09 20:21:22 +00:00
|
|
|
void
|
|
|
|
free_live_game(LiveGame *match);
|
|
|
|
|
2005-07-01 20:51:46 +00:00
|
|
|
void
|
|
|
|
free_lg_commentary(gboolean reset);
|
|
|
|
|
2005-03-03 12:46:48 +00:00
|
|
|
void
|
2005-03-24 07:42:24 +00:00
|
|
|
free_option_list(OptionList *optionlist, gboolean reset);
|
2005-03-03 12:46:48 +00:00
|
|
|
|
2005-03-18 22:03:23 +00:00
|
|
|
void
|
|
|
|
free_event(Event *event);
|
|
|
|
|
2005-04-04 10:36:04 +00:00
|
|
|
void
|
|
|
|
free_support_dirs(void);
|
|
|
|
|
2005-04-10 16:34:27 +00:00
|
|
|
void
|
2008-11-21 17:00:47 +00:00
|
|
|
free_tables(GArray **tables);
|
2005-04-10 16:34:27 +00:00
|
|
|
|
2008-11-22 16:51:31 +00:00
|
|
|
void
|
|
|
|
free_new_tables(GArray **new_tables);
|
|
|
|
|
2005-04-29 19:48:02 +00:00
|
|
|
void
|
|
|
|
free_league_stats(LeagueStat *stats);
|
|
|
|
|
2005-05-01 10:16:14 +00:00
|
|
|
void
|
2005-05-02 14:39:30 +00:00
|
|
|
free_season_stats(gboolean reset);
|
2005-05-01 10:16:14 +00:00
|
|
|
|
2005-05-16 07:09:53 +00:00
|
|
|
void
|
|
|
|
free_transfer_list(void);
|
|
|
|
|
2005-06-01 18:19:02 +00:00
|
|
|
void
|
|
|
|
free_name_list(NameList *namelist, gboolean reset);
|
|
|
|
|
|
|
|
void
|
|
|
|
free_names(gboolean reset);
|
|
|
|
|
2005-08-20 19:39:36 +00:00
|
|
|
void
|
2005-08-21 19:58:51 +00:00
|
|
|
free_mmatches(GArray **mmatches, gboolean reset);
|
2005-08-20 19:39:36 +00:00
|
|
|
|
2005-10-24 20:50:48 +00:00
|
|
|
void
|
|
|
|
free_strategies(void);
|
|
|
|
|
2005-10-27 21:10:15 +00:00
|
|
|
void
|
|
|
|
free_bets(gboolean reset);
|
|
|
|
|
2005-12-01 11:50:54 +00:00
|
|
|
void
|
|
|
|
free_job(Job *job, gboolean free_tm);
|
|
|
|
|
|
|
|
void
|
|
|
|
free_jobs(gboolean reset);
|
|
|
|
|
2008-11-27 13:24:18 +00:00
|
|
|
void
|
|
|
|
free_news(gboolean reset);
|
|
|
|
|
2008-11-28 14:09:08 +00:00
|
|
|
void
|
|
|
|
free_newspaper(gboolean reset);
|
|
|
|
|
2008-12-14 10:37:10 +00:00
|
|
|
void
|
|
|
|
free_cup_round(CupRound *cup_round);
|
|
|
|
|
2004-12-23 12:58:39 +00:00
|
|
|
#endif
|