diff options
| author | 2023-05-04 09:25:09 +0200 | |
|---|---|---|
| committer | 2023-05-04 09:25:09 +0200 | |
| commit | 753eadfd1775545c5bfb4110ad2ba7cb61df9588 (patch) | |
| tree | 84ec6b7daa8a13f63e2c5d86223858dd27365cd4 /snac.h | |
| parent | Deleted real unused parameters. (diff) | |
| download | snac2-753eadfd1775545c5bfb4110ad2ba7cb61df9588.tar.gz snac2-753eadfd1775545c5bfb4110ad2ba7cb61df9588.tar.xz snac2-753eadfd1775545c5bfb4110ad2ba7cb61df9588.zip | |
Added some const here and there.
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 14 |
1 files changed, 8 insertions, 6 deletions
| @@ -155,7 +155,7 @@ void inbox_add(const char *inbox); | |||
| 155 | void inbox_add_by_actor(const xs_dict *actor); | 155 | void inbox_add_by_actor(const xs_dict *actor); |
| 156 | xs_list *inbox_list(void); | 156 | xs_list *inbox_list(void); |
| 157 | 157 | ||
| 158 | void enqueue_input(snac *snac, xs_dict *msg, xs_dict *req, int retries); | 158 | void enqueue_input(snac *snac, const xs_dict *msg, const xs_dict *req, int retries); |
| 159 | void enqueue_output_raw(const char *keyid, const char *seckey, | 159 | void enqueue_output_raw(const char *keyid, const char *seckey, |
| 160 | xs_dict *msg, xs_str *inbox, int retries); | 160 | xs_dict *msg, xs_str *inbox, int retries); |
| 161 | void enqueue_output(snac *snac, xs_dict *msg, xs_str *inbox, int retries); | 161 | void enqueue_output(snac *snac, xs_dict *msg, xs_str *inbox, int retries); |
| @@ -187,7 +187,7 @@ int check_signature(snac *snac, xs_dict *req, xs_str **err); | |||
| 187 | void httpd(void); | 187 | void httpd(void); |
| 188 | 188 | ||
| 189 | int webfinger_request(const char *qs, char **actor, char **user); | 189 | int webfinger_request(const char *qs, char **actor, char **user); |
| 190 | int webfinger_get_handler(d_char *req, char *q_path, | 190 | int webfinger_get_handler(xs_dict *req, char *q_path, |
| 191 | char **body, int *b_size, char **ctype); | 191 | char **body, int *b_size, char **ctype); |
| 192 | 192 | ||
| 193 | const char *default_avatar_base64(void); | 193 | const char *default_avatar_base64(void); |
| @@ -220,17 +220,19 @@ int process_user_queue(snac *snac); | |||
| 220 | void process_queue_item(xs_dict *q_item); | 220 | void process_queue_item(xs_dict *q_item); |
| 221 | int process_queue(void); | 221 | int process_queue(void); |
| 222 | 222 | ||
| 223 | int activitypub_get_handler(d_char *req, char *q_path, | 223 | int activitypub_get_handler(const xs_dict *req, const char *q_path, |
| 224 | char **body, int *b_size, char **ctype); | 224 | char **body, int *b_size, char **ctype); |
| 225 | int activitypub_post_handler(d_char *req, char *q_path, | 225 | int activitypub_post_handler(const xs_dict *req, const char *q_path, |
| 226 | char *payload, int p_size, | 226 | char *payload, int p_size, |
| 227 | char **body, int *b_size, char **ctype); | 227 | char **body, int *b_size, char **ctype); |
| 228 | 228 | ||
| 229 | d_char *not_really_markdown(const char *content); | 229 | d_char *not_really_markdown(const char *content); |
| 230 | d_char *sanitize(const char *str); | 230 | d_char *sanitize(const char *str); |
| 231 | 231 | ||
| 232 | int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char **ctype); | 232 | int html_get_handler(const xs_dict *req, const char *q_path, |
| 233 | int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | 233 | char **body, int *b_size, char **ctype); |
| 234 | int html_post_handler(const xs_dict *req, const char *q_path, | ||
| 235 | char *payload, int p_size, | ||
| 234 | char **body, int *b_size, char **ctype); | 236 | char **body, int *b_size, char **ctype); |
| 235 | 237 | ||
| 236 | int snac_init(const char *_basedir); | 238 | int snac_init(const char *_basedir); |