#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] = {
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;
}