-
Notifications
You must be signed in to change notification settings - Fork 1
/
routedb.h
38 lines (30 loc) · 1.04 KB
/
routedb.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
34
35
36
37
38
#pragma once
#include <sys/queue.h>
typedef struct RouteInfo {
TAILQ_ENTRY(RouteInfo) tqEntry;
char *categories; //
char *contributor; // Contributor
char *description; // Description
char *distance; // Distance (in km)
char *duration; // Duration of the video (HH:MM:SS)
char *elevation; // Elevation gain (in meters)
char *id; // Route ID
char *location; // Location
char *shiz; // SHIZ control file
char *title; // Title
char *toughness; // Toughness score
char *vimMaster; // 4K video file
char *vim1080; // 1080p video file
char *vim720; // 720p video file
int time; // duration (in seconds)
} RouteInfo;
typedef struct RouteDB {
// URL prefix for fetching the MP4 file of a route
char *mp4UrlPfx;
// URL prefix for fetching the SHIZ file of a route
char *shizUrlPfx;
// List of routes
TAILQ_HEAD(RouteList, RouteInfo) routeList;
// Number of routes in the list
int numRoutes;
} RouteDB;