summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/account.h')
-rw-r--r--src/account.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/account.h b/src/account.h
new file mode 100644
index 0000000..049c829
--- /dev/null
+++ b/src/account.h
@@ -0,0 +1,27 @@
+#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(char *json_data);
+
+#endif