summaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/snac.h b/snac.h
index b8b5215..88f335a 100644
--- a/snac.h
+++ b/snac.h
@@ -33,6 +33,7 @@ typedef struct _snac {
33 d_char *config; /* user configuration */ 33 d_char *config; /* user configuration */
34 d_char *key; /* keypair */ 34 d_char *key; /* keypair */
35 d_char *actor; /* actor url */ 35 d_char *actor; /* actor url */
36 d_char *md5; /* actor url md5 */
36} snac; 37} snac;
37 38
38int user_open(snac *snac, char *uid); 39int user_open(snac *snac, char *uid);
@@ -59,9 +60,14 @@ int index_first(const char *fn, char *buf, int size);
59d_char *index_list(const char *fn, int max); 60d_char *index_list(const char *fn, int max);
60d_char *index_list_desc(const char *fn, int max); 61d_char *index_list_desc(const char *fn, int max);
61 62
63int object_get_by_md5(const char *md5, d_char **obj, const char *type);
62int object_del(const char *id); 64int object_del(const char *id);
63int object_del_if_unref(const char *id); 65int object_del_if_unref(const char *id);
64 66
67d_char *object_children(const char *id);
68d_char *object_likes(const char *id);
69d_char *object_announces(const char *id);
70
65int follower_add(snac *snac, const char *actor); 71int follower_add(snac *snac, const char *actor);
66int follower_del(snac *snac, const char *actor); 72int follower_del(snac *snac, const char *actor);
67int follower_check(snac *snac, const char *actor); 73int follower_check(snac *snac, const char *actor);
@@ -73,11 +79,11 @@ d_char *_timeline_find_fn(snac *snac, char *id);
73d_char *timeline_find(snac *snac, char *id); 79d_char *timeline_find(snac *snac, char *id);
74int timeline_del(snac *snac, char *id); 80int timeline_del(snac *snac, char *id);
75d_char *timeline_get(snac *snac, char *fn); 81d_char *timeline_get(snac *snac, char *fn);
76d_char *timeline_list(snac *snac, int max); 82d_char *timeline_list(snac *snac, const char *idx_name, int max);
77int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer); 83int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer);
78void timeline_admire(snac *snac, char *id, char *admirer, int like); 84void timeline_admire(snac *snac, char *o_msg, char *id, char *admirer, int like);
79 85
80d_char *timeline_top_level(snac *snac, d_char *list); 86d_char *timeline_top_level(d_char *list);
81 87
82d_char *local_list(snac *snac, int max); 88d_char *local_list(snac *snac, int max);
83 89