diff options
author | nirav <nirav@teisuu.com> | 2019-03-07 01:27:55 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2019-03-07 01:27:55 +0530 |
commit | 6dd58a30761eca36544c4e815b36907eab084949 (patch) | |
tree | c1bc857a14fffe6f35f7405f133c0ed114aec1a4 /src/status.h | |
download | ap_client-6dd58a30761eca36544c4e815b36907eab084949.tar.gz ap_client-6dd58a30761eca36544c4e815b36907eab084949.zip |
Initial commit
Diffstat (limited to 'src/status.h')
-rw-r--r-- | src/status.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/status.h b/src/status.h new file mode 100644 index 0000000..ede3540 --- /dev/null +++ b/src/status.h @@ -0,0 +1,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(char *); +struct status *status_from_json_t(json_t *); +void status_free(struct status *); + +#endif |