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

32 lines
816 B
C

/*
* Licensed under BSD 3-Clause License
*/
// TODO Move me to statuses
#ifndef MASTODONT_PLEROMA
#define MASTODONT_PLEROMA
#include <mastodont_types.h>
#include <mastodont_emoji.h>
struct mstdnt_status_pleroma
{
/* content */
int conversation_id;
int direct_conversation_id;
char* expires_at;
char* in_reply_to_account_acct;
struct mstdnt_emoji_reaction* emoji_reactions;
size_t emoji_reactions_len;
mstdnt_bool local;
mstdnt_bool parent_visible;
char* pinned_at;
/* spoiler text */
int thread_muted;
};
void mstdnt_cleanup_status_pleroma(struct mstdnt_status_pleroma* pleroma);
int mstdnt_status_pleroma_from_json(struct mstdnt_status_pleroma* pleroma, cJSON* js);
void _mstdnt_val_status_pleroma_call(cJSON* v, void* _type);
#endif /* MASTODONT_PLEROMA_H */