Mercurial > libedl
annotate include/datatypes.h @ 13:41b74137e201
include: make header guards sane
double underscores are reserved to the implementation by
the C standard
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 20:48:51 -0400 |
parents | 0cc2555db371 |
children |
rev | line source |
---|---|
13
41b74137e201
include: make header guards sane
Paper <paper@paper.us.eu.org>
parents:
12
diff
changeset
|
1 #ifndef EDL_INTERNAL_DATATYPES_H_ |
41b74137e201
include: make header guards sane
Paper <paper@paper.us.eu.org>
parents:
12
diff
changeset
|
2 #define EDL_INTERNAL_DATATYPES_H_ |
8
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
3 |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
4 #include <stddef.h> |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
5 #include "edl.h" /* EDL_media_type_t */ |
12
0cc2555db371
*: make our string functions not stupid
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
6 #include "str.h" |
8
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
7 |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
8 size_t EDL_internal_parse_int(const char* input, size_t offset, size_t length, int* int_return); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
9 size_t EDL_internal_parse_double(const char* input, size_t offset, size_t length, double* double_return); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
10 size_t EDL_internal_parse_bool(const char* input, size_t offset, size_t length, bool* bool_return); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
11 size_t EDL_internal_parse_media_type(const char* input, size_t offset, size_t length, EDL_media_type_t* media_return); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
12 size_t EDL_internal_parse_string(const char* input, size_t offset, size_t length, char** string_return); |
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
13 |
12
0cc2555db371
*: make our string functions not stupid
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
14 int EDL_internal_append_integer_to_string(EDL_internal_string* str, int value); |
0cc2555db371
*: make our string functions not stupid
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
15 int EDL_internal_append_double_to_string(EDL_internal_string* str, double value); |
0cc2555db371
*: make our string functions not stupid
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
16 int EDL_internal_append_bool_to_string(EDL_internal_string* str, bool value); |
0cc2555db371
*: make our string functions not stupid
Paper <paper@paper.us.eu.org>
parents:
8
diff
changeset
|
17 int EDL_internal_append_media_type_to_string(EDL_internal_string* str, EDL_media_type_t value); |
8
0c98b46eaf73
*: update API to 2.0, big changes
Paper <paper@paper.us.eu.org>
parents:
diff
changeset
|
18 |
13
41b74137e201
include: make header guards sane
Paper <paper@paper.us.eu.org>
parents:
12
diff
changeset
|
19 #endif /* EDL_INTERNAL_DATATYPES_H_ */ |