diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -658,6 +658,20 @@ int object_del_if_unref(const char *id) | |||
| 658 | } | 658 | } |
| 659 | 659 | ||
| 660 | 660 | ||
| 661 | double object_ctime_by_md5(const char *md5) | ||
| 662 | { | ||
| 663 | xs *fn = _object_fn_by_md5(md5); | ||
| 664 | return f_ctime(fn); | ||
| 665 | } | ||
| 666 | |||
| 667 | |||
| 668 | double 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 | |||
| 661 | d_char *_object_index_fn(const char *id, const char *idxsfx) | 675 | d_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 | { |