summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
Diffstat (limited to 'video.h')
-rw-r--r--video.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/video.h b/video.h
new file mode 100644
index 0000000..59ee2ae
--- /dev/null
+++ b/video.h
@@ -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);