diff options
| author | 2024-07-23 09:59:48 +0200 | |
|---|---|---|
| committer | 2024-07-23 09:59:48 +0200 | |
| commit | c06132579cdfa1ffa41d73f438b7e2999c4c8e62 (patch) | |
| tree | 3c6633a956b3600122c878b1effdf840f198a7a3 /snac.h | |
| parent | Reimplemented index_list_desc() by way of index_desc_first() and index_desc_n... (diff) | |
| download | penes-snac2-c06132579cdfa1ffa41d73f438b7e2999c4c8e62.tar.gz penes-snac2-c06132579cdfa1ffa41d73f438b7e2999c4c8e62.tar.xz penes-snac2-c06132579cdfa1ffa41d73f438b7e2999c4c8e62.zip | |
New constant MD5_HEX_SIZE.
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -20,6 +20,8 @@ | |||
| 20 | #define MAX_CONVERSATION_LEVELS 48 | 20 | #define MAX_CONVERSATION_LEVELS 48 |
| 21 | #endif | 21 | #endif |
| 22 | 22 | ||
| 23 | #define MD5_HEX_SIZE 33 | ||
| 24 | |||
| 23 | extern double disk_layout; | 25 | extern double disk_layout; |
| 24 | extern xs_str *srv_basedir; | 26 | extern xs_str *srv_basedir; |
| 25 | extern xs_dict *srv_config; | 27 | extern xs_dict *srv_config; |
| @@ -101,8 +103,8 @@ int index_gc(const char *fn); | |||
| 101 | int index_first(const char *fn, char *buf, int size); | 103 | int index_first(const char *fn, char *buf, int size); |
| 102 | int index_len(const char *fn); | 104 | int index_len(const char *fn); |
| 103 | xs_list *index_list(const char *fn, int max); | 105 | xs_list *index_list(const char *fn, int max); |
| 104 | int index_desc_next(FILE *f, char md5[33]); | 106 | int index_desc_next(FILE *f, char md5[MD5_HEX_SIZE]); |
| 105 | int index_desc_first(FILE *f, char md5[33], int skip); | 107 | int index_desc_first(FILE *f, char md5[MD5_HEX_SIZE], int skip); |
| 106 | xs_list *index_list_desc(const char *fn, int skip, int show); | 108 | xs_list *index_list_desc(const char *fn, int skip, int show); |
| 107 | 109 | ||
| 108 | int object_add(const char *id, const xs_dict *obj); | 110 | int object_add(const char *id, const xs_dict *obj); |