diff options
| author | 2023-07-14 08:47:20 +0200 | |
|---|---|---|
| committer | 2023-07-14 08:47:20 +0200 | |
| commit | eee19168580fdf228b4829da89725d394159fd60 (patch) | |
| tree | 3fe88b26fedb2cb519d25646c398b78a10540253 | |
| parent | Merge pull request 'html.c: Don't let public get into timeline.html_' (#67) f... (diff) | |
| download | snac2-eee19168580fdf228b4829da89725d394159fd60.tar.gz snac2-eee19168580fdf228b4829da89725d394159fd60.tar.xz snac2-eee19168580fdf228b4829da89725d394159fd60.zip | |
Fixed prototypes.
| -rw-r--r-- | data.c | 4 | ||||
| -rw-r--r-- | snac.h | 4 |
2 files changed, 4 insertions, 4 deletions
| @@ -1068,7 +1068,7 @@ void timeline_update_indexes(snac *snac, const char *id) | |||
| 1068 | } | 1068 | } |
| 1069 | 1069 | ||
| 1070 | 1070 | ||
| 1071 | int timeline_add(snac *snac, char *id, char *o_msg) | 1071 | int timeline_add(snac *snac, const char *id, const xs_dict *o_msg) |
| 1072 | /* adds a message to the timeline */ | 1072 | /* adds a message to the timeline */ |
| 1073 | { | 1073 | { |
| 1074 | int ret = object_add(id, o_msg); | 1074 | int ret = object_add(id, o_msg); |
| @@ -1080,7 +1080,7 @@ int timeline_add(snac *snac, char *id, char *o_msg) | |||
| 1080 | } | 1080 | } |
| 1081 | 1081 | ||
| 1082 | 1082 | ||
| 1083 | void timeline_admire(snac *snac, char *id, char *admirer, int like) | 1083 | void timeline_admire(snac *snac, const char *id, const char *admirer, int like) |
| 1084 | /* updates a timeline entry with a new admiration */ | 1084 | /* updates a timeline entry with a new admiration */ |
| 1085 | { | 1085 | { |
| 1086 | /* if we are admiring this, add to both timelines */ | 1086 | /* if we are admiring this, add to both timelines */ |
| @@ -110,8 +110,8 @@ int timeline_get_by_md5(snac *snac, const char *md5, xs_dict **msg); | |||
| 110 | int timeline_del(snac *snac, char *id); | 110 | int timeline_del(snac *snac, char *id); |
| 111 | xs_list *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show); | 111 | xs_list *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show); |
| 112 | xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show); | 112 | xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show); |
| 113 | int timeline_add(snac *snac, char *id, char *o_msg); | 113 | int timeline_add(snac *snac, const char *id, const xs_dict *o_msg); |
| 114 | void timeline_admire(snac *snac, char *id, char *admirer, int like); | 114 | void timeline_admire(snac *snac, const char *id, const char *admirer, int like); |
| 115 | 115 | ||
| 116 | xs_list *timeline_top_level(snac *snac, xs_list *list); | 116 | xs_list *timeline_top_level(snac *snac, xs_list *list); |
| 117 | xs_list *local_list(snac *snac, int max); | 117 | xs_list *local_list(snac *snac, int max); |