summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'data.c')
-rw-r--r--data.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/data.c b/data.c
index 96ec7f0..6ca5e0a 100644
--- a/data.c
+++ b/data.c
@@ -658,6 +658,20 @@ int object_del_if_unref(const char *id)
658} 658}
659 659
660 660
661double object_ctime_by_md5(const char *md5)
662{
663 xs *fn = _object_fn_by_md5(md5);
664 return f_ctime(fn);
665}
666
667
668double object_ctime(const char *id)
669{
670 xs *md5 = xs_md5_hex(id, strlen(id));
671 return object_ctime_by_md5(md5);
672}
673
674
661d_char *_object_index_fn(const char *id, const char *idxsfx) 675d_char *_object_index_fn(const char *id, const char *idxsfx)
662/* returns the filename of an object's index */ 676/* returns the filename of an object's index */
663{ 677{