Mercurial > libedl
view include/datatypes.h @ 12:0cc2555db371
*: make our string functions not stupid
strncat() made everything slow!
new addition internally: an EDL_header structure to make things
not stupid. if we were using C++ it wouldn't really be necessary,
but alas :)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 27 Mar 2024 13:38:30 -0400 |
parents | 0c98b46eaf73 |
children | 41b74137e201 |
line wrap: on
line source
#ifndef __edl__internal__datatypes_h #define __edl__internal__datatypes_h #include <stddef.h> #include "edl.h" /* EDL_media_type_t */ #include "str.h" 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); int EDL_internal_append_integer_to_string(EDL_internal_string* str, int value); int EDL_internal_append_double_to_string(EDL_internal_string* str, double value); int EDL_internal_append_bool_to_string(EDL_internal_string* str, bool value); int EDL_internal_append_media_type_to_string(EDL_internal_string* str, EDL_media_type_t value); #endif /* __edl__internal__datatypes_h */