Modify error type(svc-error type to media-util error type).
[platform/core/multimedia/libmedia-service.git] / md5 / media-svc-hash.c
index ae8209d..b3e5eea 100755 (executable)
@@ -29,7 +29,7 @@
 #include <string.h>
 #include <alloca.h>
 #include "media-svc-hash.h"
-#include "media-svc-error.h"
+#include "media-util-err.h"
 
 
 static const char ACCEPTABLE_URI_CHARS[96] = {
@@ -116,18 +116,18 @@ int mb_svc_generate_hash_code(const char *origin_path, char *hash_code, int max_
        char *hash = NULL;
 
        if (max_length < ((2 * MD5_HASHBYTES) + 1)) {
-               return MEDIA_INFO_ERROR_INVALID_PARAMETER;
+               return MS_MEDIA_ERR_INVALID_PARAMETER;
        }
 
        hash = _mb_svc_generate_hash_name(origin_path);
 
        if (hash == NULL) {
-               return MEDIA_INFO_ERROR_INTERNAL;
+               return MS_MEDIA_ERR_INTERNAL;
        }
 
        strncpy(hash_code, hash, max_length);
        hash_code[strlen(hash_code)] ='\0';
 
-       return MEDIA_INFO_ERROR_NONE;
+       return MS_MEDIA_ERR_NONE;
 }