-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseason.h
33 lines (26 loc) · 871 Bytes
/
season.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* season.h
*
* Created on: Apr 14, 2018
* Author: muhamadg
*/
#ifndef SEASON_H_
#define SEASON_H_
typedef struct season* Season;
#include"team.h"
#include"driver.h"
typedef enum seasonStatus {
SEASON_OK,
SEASON_MEMORY_ERROR,
BAD_SEASON_INFO,
SEASON_NULL_PTR} SeasonStatus;
Season SeasonCreate(SeasonStatus* status,const char* season_info);
void SeasonDestroy(Season season);
Driver SeasonGetDriverByPosition(Season season, int position, SeasonStatus* status);
Driver* SeasonGetDriversStandings(Season season);
Team SeasonGetTeamByPosition(Season season, int position, SeasonStatus* status);
Team* SeasonGetTeamsStandings(Season season);
int SeasonGetNumberOfDrivers(Season season);
int SeasonGetNumberOfTeams(Season season);
SeasonStatus SeasonAddRaceResult(Season season, int* results);
#endif /* SEASON_H_ */