summaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/snac.h b/snac.h
index 583610d..96916d1 100644
--- a/snac.h
+++ b/snac.h
@@ -1,7 +1,7 @@
1/* snac - A simple, minimalistic ActivityPub instance */ 1/* snac - A simple, minimalistic ActivityPub instance */
2/* copyright (c) 2022 - 2024 grunfink et al. / MIT license */ 2/* copyright (c) 2022 - 2024 grunfink et al. / MIT license */
3 3
4#define VERSION "2.66" 4#define VERSION "2.67"
5 5
6#define USER_AGENT "snac/" VERSION 6#define USER_AGENT "snac/" VERSION
7 7
@@ -238,6 +238,9 @@ int notify_new_num(snac *snac);
238xs_list *notify_list(snac *snac, int skip, int show); 238xs_list *notify_list(snac *snac, int skip, int show);
239void notify_clear(snac *snac); 239void notify_clear(snac *snac);
240 240
241xs_dict *markers_get(snac *snac, const xs_list *markers);
242xs_dict *markers_set(snac *snac, const char *home_marker, const char *notify_marker);
243
241void inbox_add(const char *inbox); 244void inbox_add(const char *inbox);
242void inbox_add_by_actor(const xs_dict *actor); 245void inbox_add_by_actor(const xs_dict *actor);
243xs_list *inbox_list(void); 246xs_list *inbox_list(void);
@@ -386,7 +389,7 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
386 const char *payload, int p_size, 389 const char *payload, int p_size,
387 char **body, int *b_size, char **ctype); 390 char **body, int *b_size, char **ctype);
388int mastoapi_get_handler(const xs_dict *req, const char *q_path, 391int mastoapi_get_handler(const xs_dict *req, const char *q_path,
389 char **body, int *b_size, char **ctype); 392 char **body, int *b_size, char **ctype, xs_str **link);
390int mastoapi_post_handler(const xs_dict *req, const char *q_path, 393int mastoapi_post_handler(const xs_dict *req, const char *q_path,
391 const char *payload, int p_size, 394 const char *payload, int p_size,
392 char **body, int *b_size, char **ctype); 395 char **body, int *b_size, char **ctype);
@@ -427,3 +430,6 @@ typedef struct {
427t_announcement *announcement(double after); 430t_announcement *announcement(double after);
428 431
429xs_str *make_url(const char *href, const char *proxy, int by_token); 432xs_str *make_url(const char *href, const char *proxy, int by_token);
433
434int badlogin_check(const char *user, const char *addr);
435void badlogin_inc(const char *user, const char *addr);