bygfoot/src/free.h

166 lines
2.9 KiB
C
Raw Normal View History

2005-10-20 17:45:00 +02:00
/*
2005-11-26 17:52:51 +01:00
free.h
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 "job_struct.h"
#include "league_struct.h"
2005-01-09 21:21:22 +01:00
#include "live_game_struct.h"
#include "name_struct.h"
2008-12-19 18:28:51 +01:00
#include "news_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
free_country(Country *cntry, 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
free_joined_leagues(GArray **joined_leagues);
2004-12-23 13:58:39 +01:00
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
2008-11-21 18:00:47 +01:00
free_tables(GArray **tables);
2005-04-10 18:34:27 +02:00
void
free_new_tables(GArray **new_tables);
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);
void
free_job(Job *job, gboolean free_tm);
void
free_jobs(gboolean reset);
2008-11-27 14:24:18 +01:00
void
free_news(gboolean reset);
2008-11-28 15:09:08 +01:00
void
free_newspaper(gboolean reset);
2008-12-19 18:28:51 +01:00
void
free_newspaper_article(NewsPaperArticle *article);
void
free_cup_round(CupRound *cup_round);
void
free_prom_rel(PromRel *prom_rel);
2004-12-23 13:58:39 +01:00
#endif