diff options
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -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 - 2025 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #define VERSION "2.68-dev" | 4 | #define VERSION "2.70-dev" |
| 5 | 5 | ||
| 6 | #define USER_AGENT "snac/" VERSION | 6 | #define USER_AGENT "snac/" VERSION |
| 7 | 7 | ||
| @@ -108,6 +108,8 @@ int index_len(const char *fn); | |||
| 108 | xs_list *index_list(const char *fn, int max); | 108 | xs_list *index_list(const char *fn, int max); |
| 109 | int index_desc_next(FILE *f, char md5[MD5_HEX_SIZE]); | 109 | int index_desc_next(FILE *f, char md5[MD5_HEX_SIZE]); |
| 110 | int index_desc_first(FILE *f, char md5[MD5_HEX_SIZE], int skip); | 110 | int index_desc_first(FILE *f, char md5[MD5_HEX_SIZE], int skip); |
| 111 | int index_asc_next(FILE *f, char md5[MD5_HEX_SIZE]); | ||
| 112 | int index_asc_first(FILE *f, char md5[MD5_HEX_SIZE], const char *seek_md5); | ||
| 111 | xs_list *index_list_desc(const char *fn, int skip, int show); | 113 | xs_list *index_list_desc(const char *fn, int skip, int show); |
| 112 | 114 | ||
| 113 | int object_add(const char *id, const xs_dict *obj); | 115 | int object_add(const char *id, const xs_dict *obj); |
| @@ -317,7 +319,7 @@ xs_dict *msg_follow(snac *snac, const char *actor); | |||
| 317 | 319 | ||
| 318 | xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, | 320 | xs_dict *msg_note(snac *snac, const xs_str *content, const xs_val *rcpts, |
| 319 | const xs_str *in_reply_to, const xs_list *attach, | 321 | const xs_str *in_reply_to, const xs_list *attach, |
| 320 | int priv, const char *lang); | 322 | int scope, const char *lang); |
| 321 | 323 | ||
| 322 | xs_dict *msg_undo(snac *snac, const xs_val *object); | 324 | xs_dict *msg_undo(snac *snac, const xs_val *object); |
| 323 | xs_dict *msg_delete(snac *snac, const char *id); | 325 | xs_dict *msg_delete(snac *snac, const char *id); |