summaryrefslogtreecommitdiff
path: root/libgs/src/status.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/status.h
parentcc727e972f7fdc871ee1f42cf014151b67422bf0 (diff)
downloadap_client-master.tar.gz
ap_client-master.zip
Move APIs into libgs dirHEADmaster
Diffstat (limited to 'libgs/src/status.h')
-rw-r--r--libgs/src/status.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/libgs/src/status.h b/libgs/src/status.h
new file mode 100644
index 0000000..431a027
--- /dev/null
+++ b/libgs/src/status.h
@@ -0,0 +1,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