diff options
author | default <nobody@localhost> | 2023-04-12 09:46:42 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-12 09:46:42 +0200 |
commit | 5046531d43525cfd1ce16aeae840d8a33d2fb9c7 (patch) | |
tree | 87b0213b9f67a1d02f4bae82a5144bb8a57fe022 /data.c | |
parent | 93008cfc3e60b09e12fc3e1220602cab3a40b652 (diff) |
New functions object_ctime() and object_ctime_by_md5().
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) } +double object_ctime_by_md5(const char *md5) +{ + xs *fn = _object_fn_by_md5(md5); + return f_ctime(fn); +} + + +double object_ctime(const char *id) +{ + xs *md5 = xs_md5_hex(id, strlen(id)); + return object_ctime_by_md5(md5); +} + + d_char *_object_index_fn(const char *id, const char *idxsfx) /* returns the filename of an object's index */ { |