blob: 431a027e12f1edd64be1982ae52388823c3a6ce0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef __GS_STATUS_H
#define __GS_STATUS_H
#include <stdbool.h>
#include <jansson.h>
#include "account.h"
struct gs_status {
char *id;
char *uri;
char *url;
struct gs_account *account;
char *in_reply_to_id;
char *in_reply_to_account_id;
struct gs_status *reblog;
char *content;
unsigned int replies_count;
unsigned int reblogs_count;
unsigned int favourites_count;
bool reblogged;
bool favourited;
bool muted;
bool sensitive;
};
struct gs_status *gs_status_from_json(const char *);
struct gs_status *gs_status_from_json_t(const json_t *);
void gs_status_free(struct gs_status *);
#endif
|