/* * pHatt - PalmOS(TM) Hattrick (http://www.hattrick.org) Manager Assistant * * hrf2pdb.h - prototypes for hrf2pdb/convert * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ /* Types */ #define ERR_OLD 1 #define ERR_HRF 2 #define ERR_NEW 3 #define ERR_EMPTY 4 #define ERR_VERSION 5 #define ERR_NOPLAYER 6 #define ERR_DB 7 #define ERR_PARAM 8 #define ERR_ALLOC 9 #define ERR_UTF 10 void usage(int); int convert(char *, char *, char *); struct changes { char form; char experience; char stamina; char winging; char goalie; char defending; char playmaking; char scoring; char passing; char setting; char value[4]; }; struct player { char *name; unsigned int age, form, injured, nice, wild, honest, value; unsigned int experience, stamina, winging, goalie, defending; unsigned int leading, playmaking, scoring, passing, setting; unsigned int speciality, namelen, transfer, id; }; struct pplayer { char nextp[4]; char namep[4]; char id[4]; char age; char form; char injured; char nice; char wild; char honest; char value[4]; char experience; char stamina; char winging; char goalie; char defending; char leading; char playmaking; char scoring; char passing; char setting; char speciality; char namelen; char transfer[4]; struct changes changes; }; struct database { char name[32]; char attributes[2]; char version[2]; char creation_date[4]; char modification_date[4]; char backup_date[4]; char modification_number[4]; char app_info_id[4]; char sort_info_id[4]; char type[4]; char creator[4]; char uniqueidseed[4]; char next_record_list[4]; char number_of_records[2]; }; struct preferences { char country[2]; char isalarm; char positionPage; char selectedScreen[2]; char selectedPlayer[2]; char selectedEditPage[2]; char selectedPositionPage[2]; char prefsPlayerScreen[2]; char prefsPrevScreen[2]; char prefsAttitude[2]; char positionWeight[220]; char selectedArena; char arenaPessimistic; char arenaNormal; char arenaOptimistic; char arenaTerraces; char arenaBasic; char arenaRoof; char arenaVIP; char arenaHasTerraces[4]; char arenaHasBasic[4]; char arenaHasRoof[4]; char arenaHasVIP[4]; char supporters[4]; char orderby[2]; };