summaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-08 09:09:43 +0200
committerdefault <nobody@localhost>2023-04-08 09:09:43 +0200
commit4964a564560fb81a505179ae7d9730d2231a743c (patch)
treef8061836eec76123af0b325f3b59e2b215e2a21f /snac.h
parenteba6987fd55c2cc94393c61e6bbd86514e14993b (diff)
More mastoapi work.
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/snac.h b/snac.h
index 438768a..f1960a3 100644
--- a/snac.h
+++ b/snac.h
@@ -224,7 +224,11 @@ int job_fifo_ready(void);
void job_post(const xs_val *job, int urgent);
void job_wait(xs_val **job);
-int mastoapi_post_handler(xs_dict *req, char *q_path, char *payload, int p_size,
+int mastoapi_post_handler(const xs_dict *req, const char *q_path,
+ const char *payload, int p_size,
char **body, int *b_size, char **ctype);
-int oauth_post_handler(xs_dict *req, char *q_path, char *payload, int p_size,
+int oauth_get_handler(const xs_dict *req, const char *q_path,
+ char **body, int *b_size, char **ctype);
+int oauth_post_handler(const xs_dict *req, const char *q_path,
+ const char *payload, int p_size,
char **body, int *b_size, char **ctype);