blob: 547f2762151bd210df83f237045dcf809f53622d (
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
|
#ifndef __account_H
#define __account_H
#include <stdbool.h>
struct account {
char *id;
char *username;
char *acct;
char *display_name;
bool locked;
unsigned int follower_count;
unsigned int following_count;
unsigned int statuses_count;
char *note;
char *url;
char *avatar;
char *avatar_static;
char *header;
char *header_static;
struct account *moved;
bool bot;
};
struct account *account_from_json(const char *json_data);
struct account *account_from_json_t(const json_t *);
void account_free(struct account *);
#endif
|