c0ddc1bf5e
FossilOrigin-Name: 4e8cdf2538b5a6eaf91c61e3b0ae57621d0934f376351c5d3b7b320927eb27d8
24 lines
539 B
C
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 */
|