blob: a065f501cdce5cf54eca0204f3210dd032cda200 (
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 __STATUS_H
#define __STATUS_H
#include <stdbool.h>
#include <jansson.h>
#include "account.h"
struct status {
char *id;
char *uri;
char *url;
struct account *account;
char *in_reply_to_id;
char *in_reply_to_account_id;
struct 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 status *status_from_json(const char *);
struct status *status_from_json_t(const json_t *);
void status_free(struct status *);
#endif
|