Make const versions of strings in structs to avoid string copying & pass objects to create/update instead of values

This commit is contained in:
2020-10-15 12:36:27 +01:00
parent 880f9c04e1
commit bcd206dcf3
10 changed files with 121 additions and 56 deletions

View File

@@ -27,7 +27,10 @@ struct meta_ext_t {
struct meta_ext_value_t {
char *key;
const char *key_c;
size_t key_len;
enum e_value_type_t type;
union {
void *raw;
int bool;