diff options
author | default <nobody@localhost> | 2022-12-02 20:44:51 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-12-02 20:44:51 +0100 |
commit | 3e2891b100c3359bf3ff85e01447270f0aab3be1 (patch) | |
tree | 8882ff9b29248f12e14b0fa7ce57a5062f6db944 /data.c | |
parent | 4819c4248dc54c05cd4db9f181b333c3fd05d03d (diff) |
Renamed timeline_here() to object_here().
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -411,6 +411,15 @@ d_char *_object_fn(const char *id) } +int object_here(char *id) +/* checks if an object is already downloaded */ +{ + xs *fn = _object_fn(id); + + return mtime(fn) > 0.0; +} + + int object_get_by_md5(const char *md5, d_char **obj, const char *type) /* returns a stored object, optionally of the requested type */ { @@ -758,15 +767,6 @@ d_char *_timeline_find_fn(snac *snac, char *id) } -int timeline_here(snac *snac, char *id) -/* checks if an object is already downloaded */ -{ - xs *fn = _timeline_find_fn(snac, id); - - return fn != NULL; -} - - d_char *timeline_find(snac *snac, char *id) /* gets a message from the timeline by id */ { |