mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Fixed prototypes.
This commit is contained in:
parent
510bd60cdf
commit
eee1916858
2 changed files with 4 additions and 4 deletions
4
data.c
4
data.c
|
@ -1068,7 +1068,7 @@ void timeline_update_indexes(snac *snac, const char *id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int timeline_add(snac *snac, char *id, char *o_msg)
|
int timeline_add(snac *snac, const char *id, const xs_dict *o_msg)
|
||||||
/* adds a message to the timeline */
|
/* adds a message to the timeline */
|
||||||
{
|
{
|
||||||
int ret = object_add(id, o_msg);
|
int ret = object_add(id, o_msg);
|
||||||
|
@ -1080,7 +1080,7 @@ int timeline_add(snac *snac, char *id, char *o_msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void timeline_admire(snac *snac, char *id, char *admirer, int like)
|
void timeline_admire(snac *snac, const char *id, const char *admirer, int like)
|
||||||
/* updates a timeline entry with a new admiration */
|
/* updates a timeline entry with a new admiration */
|
||||||
{
|
{
|
||||||
/* if we are admiring this, add to both timelines */
|
/* if we are admiring this, add to both timelines */
|
||||||
|
|
4
snac.h
4
snac.h
|
@ -110,8 +110,8 @@ int timeline_get_by_md5(snac *snac, const char *md5, xs_dict **msg);
|
||||||
int timeline_del(snac *snac, char *id);
|
int timeline_del(snac *snac, char *id);
|
||||||
xs_list *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show);
|
xs_list *timeline_simple_list(snac *snac, const char *idx_name, int skip, int show);
|
||||||
xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show);
|
xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show);
|
||||||
int timeline_add(snac *snac, char *id, char *o_msg);
|
int timeline_add(snac *snac, const char *id, const xs_dict *o_msg);
|
||||||
void timeline_admire(snac *snac, char *id, char *admirer, int like);
|
void timeline_admire(snac *snac, const char *id, const char *admirer, int like);
|
||||||
|
|
||||||
xs_list *timeline_top_level(snac *snac, xs_list *list);
|
xs_list *timeline_top_level(snac *snac, xs_list *list);
|
||||||
xs_list *local_list(snac *snac, int max);
|
xs_list *local_list(snac *snac, int max);
|
||||||
|
|
Loading…
Reference in a new issue