summaryrefslogtreecommitdiff
path: root/libgs/src/account.h
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2019-03-28 09:10:52 +0530
committernirav <nirav@teisuu.com>2019-03-28 09:10:52 +0530
commit477e1ba2977435ae7bb75c7dbd95cf28247f89bd (patch)
treece1f9719a7d11bbd47e9adea26dd610bc087962e /libgs/src/account.h
parentcc727e972f7fdc871ee1f42cf014151b67422bf0 (diff)
downloadap_client-477e1ba2977435ae7bb75c7dbd95cf28247f89bd.tar.gz
ap_client-477e1ba2977435ae7bb75c7dbd95cf28247f89bd.zip
Move APIs into libgs dirHEADmaster
Diffstat (limited to 'libgs/src/account.h')
-rw-r--r--libgs/src/account.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/libgs/src/account.h b/libgs/src/account.h
new file mode 100644
index 0000000..c9d36d2
--- /dev/null
+++ b/libgs/src/account.h
@@ -0,0 +1,30 @@
+#ifndef __GS_ACCOUNT_H
+#define __GS_ACCOUNT_H
+
+#include <stdbool.h>
+#include <jansson.h>
+
+struct gs_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 gs_account *moved;
+ bool bot;
+};
+
+struct gs_account *gs_account_from_json(const char *json_data);
+struct gs_account *gs_account_from_json_t(const json_t *);
+void gs_account_free(struct gs_account *);
+
+#endif