diff options
Diffstat (limited to 'video.h')
-rw-r--r-- | video.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,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); |