diff --git a/include/mastodont_notification.h b/include/mastodont_notification.h index dd28331..25ddc1b 100644 --- a/include/mastodont_notification.h +++ b/include/mastodont_notification.h @@ -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, diff --git a/src/notification.c b/src/notification.c index a249fce..528a937 100644 --- a/src/notification.c +++ b/src/notification.c @@ -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)