Notification args

FossilOrigin-Name: 82f1f70f8e07d70f1276ac104cd59f5e9f4e10d2c1de98191adda7b57333407c
This commit is contained in:
nekobit 2022-08-12 05:26:58 +00:00
parent c9c954d5e6
commit 81641ef140
2 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,7 @@ struct mstdnt_get_notifications_args
mstdnt_bool with_muted;
char* max_id;
char* min_id;
char* id;
char* since_id;
int offset;
int limit;
@ -68,6 +69,11 @@ int mastodont_notifications_clear(mastodont_t* data,
struct mstdnt_args* m_args,
struct mstdnt_storage* storage);
int mastodont_notifications_read(mastodont_t* data,
struct mstdnt_args* m_args,
struct mstdnt_notification_args* args,
struct mstdnt_storage* storage);
int mastodont_notification_dismiss(mastodont_t* data,
struct mstdnt_args* m_args,
struct mstdnt_storage* storage,

View File

@ -78,7 +78,7 @@ int mstdnt_notifications_json_callback(cJSON* json, void* _args)
int mastodont_get_notifications(mastodont_t* data,
struct mstdnt_args* m_args,
struct mstdnt_get_notifications_args* args,
struct mstdnt_notifications_args* args,
struct mstdnt_storage* storage,
struct mstdnt_notification** notifs,
size_t* size)