diff include/datatypes.h @ 8:0c98b46eaf73 v2.0

*: update API to 2.0, big changes all APIs now use pointers to an EDL object. it is up to the user to make sure that the pointer is valid. additionally, many things have been separated into new files to make it easier to digest
author Paper <paper@paper.us.eu.org>
date Sun, 03 Mar 2024 17:56:58 -0500
parents
children 0cc2555db371
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/datatypes.h	Sun Mar 03 17:56:58 2024 -0500
@@ -0,0 +1,18 @@
+#ifndef __edl__internal__datatypes_h
+#define __edl__internal__datatypes_h
+
+#include <stddef.h>
+#include "edl.h" /* EDL_media_type_t */
+
+size_t EDL_internal_parse_int(const char* input, size_t offset, size_t length, int* int_return);
+size_t EDL_internal_parse_double(const char* input, size_t offset, size_t length, double* double_return);
+size_t EDL_internal_parse_bool(const char* input, size_t offset, size_t length, bool* bool_return);
+size_t EDL_internal_parse_media_type(const char* input, size_t offset, size_t length, EDL_media_type_t* media_return);
+size_t EDL_internal_parse_string(const char* input, size_t offset, size_t length, char** string_return);
+
+char* EDL_internal_integer_to_string(int value);
+char* EDL_internal_double_to_string(double value);
+char* EDL_internal_bool_to_string(bool value);
+char* EDL_internal_media_type_to_string(EDL_media_type_t value);
+
+#endif /* __edl__internal__datatypes_h */