Mercurial > libedl
diff include/edl.h @ 2:d00bc412900e
*: fix up lots of stuff and make the thing actually usable
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 24 Dec 2023 20:01:30 -0500 |
parents | 0ea1ec2da443 |
children | c2408abb258a |
line wrap: on
line diff
--- a/include/edl.h Tue Jul 04 22:50:26 2023 -0400 +++ b/include/edl.h Sun Dec 24 20:01:30 2023 -0500 @@ -1,8 +1,16 @@ -#include <stdbool.h> +#ifndef __edl__edl_h +#define __edl__edl_h + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stdbool.h> /* C99 required */ +#include <stddef.h> typedef enum { - video, - audio + MEDIATYPE_VIDEO, + MEDIATYPE_AUDIO } MediaType; typedef struct { @@ -17,7 +25,7 @@ bool looped; bool on_ruler; MediaType media_type; - char* file_name; + char* filename; int stream; double stream_start; double stream_length; @@ -39,7 +47,16 @@ } EDL_line; typedef struct { - EDL_line* edl; + EDL_line* arr; + int capacity; int size; - int current; -} EDL_file; \ No newline at end of file +} EDL_file; + +EDL_file EDL_parse(const char* text, size_t length); +void EDL_free(EDL_file file); + +#ifdef __cplusplus +} +#endif + +#endif