diff options
Diffstat (limited to 'md5/media-thumb-hash.c')
-rw-r--r-- | md5/media-thumb-hash.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/md5/media-thumb-hash.c b/md5/media-thumb-hash.c index 6081681..6e8b74e 100644 --- a/md5/media-thumb-hash.c +++ b/md5/media-thumb-hash.c @@ -109,25 +109,4 @@ char *_media_thumb_generate_hash_name(const char *file) md5out[2 * n] = '\0'; return md5out; -} - -int thumbnail_generate_hash_code(const char *origin_path, char *hash_code, int max_length) -{ - char *hash = NULL; - - if (max_length < ((2 * MD5_HASHBYTES) + 1)) { - return MS_MEDIA_ERR_INVALID_PARAMETER; - } - - hash = _media_thumb_generate_hash_name(origin_path); - - if (hash == NULL) { - return MS_MEDIA_ERR_INTERNAL; - } - - strncpy(hash_code, hash, max_length); - hash_code[strlen(hash_code)] ='\0'; - - return MS_MEDIA_ERR_NONE; -} - +}
\ No newline at end of file |