Added some functions

This commit is contained in:
Ano-sys
2025-01-29 01:36:31 +01:00
parent 1d760df46b
commit 190011be88
95 changed files with 37949 additions and 1161 deletions
+3 -7
View File
@@ -11,16 +11,12 @@ typedef struct key_value_pair{
char *(*toString)(struct key_value_pair *);
} key_value_pair;
// Externals
extern key_value_pair *head;
extern key_value_pair *tail;
// Functions
key_value_pair *init_key_value_pair(const char *key, const char *value);
void free_key_value_pair(key_value_pair **kv);
void free_key_value_pairs();
void free_key_value_pairs(key_value_pair **head, key_value_pair **tail);
int add_key_value_pair(key_value_pair *kv);
void remove_key_value_pair(key_value_pair *kv);
int add_key_value_pair(key_value_pair *kv, key_value_pair **head, key_value_pair **tail);
void remove_key_value_pair(key_value_pair *kv, key_value_pair **head, key_value_pair **tail);
#endif //KEY_VALUE_PAIR_H