blob: 59ee2ae044c2d415ad34f0b1d674818bd48f49bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <time.h>
#define TITLE 100
#define AUTHOR 120
#define VIDEOID 11
#define DESCRIPTION 5000
/*
* title -> max 100 characters
* author -> max 120 characters combined
* video id -> max 11 characters
* video description -> max 5000 characters
* thumbnail -> https://i.ytimg.com/vi/[id]/hq720.jpg
*/
typedef struct video
{
char *title, *author, *id, *description;
time_t duration;
} Video;
Video createVideo(char *title, char *author, char *id, char *description, time_t duration);
void freeVideo(Video *v);
|