diff include/edl.h @ 4:c2408abb258a

*: add dumping to string, rename EDL_file to EDL
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Dec 2023 16:24:16 -0500
parents d00bc412900e
children 7137fbac0b85
line wrap: on
line diff
--- a/include/edl.h	Sun Dec 24 20:22:54 2023 -0500
+++ b/include/edl.h	Mon Dec 25 16:24:16 2023 -0500
@@ -10,7 +10,8 @@
 
 typedef enum {
 	MEDIATYPE_VIDEO,
-	MEDIATYPE_AUDIO
+	MEDIATYPE_AUDIO,
+	MEDIATYPE_UNKNOWN
 } MediaType;
 
 typedef struct {
@@ -50,10 +51,11 @@
 	EDL_line* arr;
 	int capacity;
 	int size;
-} EDL_file;
+} EDL;
 
-EDL_file EDL_parse(const char* text, size_t length);
-void EDL_free(EDL_file file);
+EDL EDL_parse(const char* text, size_t length);
+char* EDL_dump(EDL edl);
+void EDL_free(EDL edl);
 
 #ifdef __cplusplus
 }