mastodont-c/include/mastodont_tag.h
nekobit c0ddc1bf5e Add clause
FossilOrigin-Name: 4e8cdf2538b5a6eaf91c61e3b0ae57621d0934f376351c5d3b7b320927eb27d8
2022-11-14 15:36:07 +00:00

24 lines
539 B
C

/*
* Licensed under BSD 3-Clause License
*/
#ifndef MASTODONT_TAG
#define MASTODONT_TAG
#include <stdint.h>
#include "mastodont_history.h"
struct mstdnt_tag
{
char* name;
char* url;
struct mstdnt_history* history;
size_t history_len;
};
int mstdnt_tag_json(struct mstdnt_tag* tag, cJSON* emo_json);
int mstdnt_tags_json(struct mstdnt_tag* array[], size_t* array_size, cJSON* js);
void mstdnt_cleanup_tag(struct mstdnt_tag* tag);
void mstdnt_cleanup_tags(struct mstdnt_tag* tags, size_t s);
#endif /* MASTODONT_TAG */