ret = ms_user_get_internal_root_path(uid, &internal_path);
media_svc_retvm_if(ret != MS_MEDIA_ERR_NONE, ret, "Fail to get root path");
- if (MS_STRING_VALID(internal_path) && strncmp(path, internal_path, strlen(internal_path)) == 0) {
+ if (STRING_VALID(internal_path) && strncmp(path, internal_path, strlen(internal_path)) == 0) {
g_strlcpy(storage_id, DB_TABLE_MEDIA, MEDIA_SVC_UUID_SIZE + 1);
g_free(internal_path);
return MS_MEDIA_ERR_NONE;
ret = _media_svc_sql_prepare_to_step(handle, sql, &sql_stmt);
media_svc_retv_if(ret != MS_MEDIA_ERR_NONE, ret);
- if (MS_STRING_VALID((const char *)sqlite3_column_text(sql_stmt, 0)))
+ if (STRING_VALID((const char *)sqlite3_column_text(sql_stmt, 0)))
g_strlcpy(storage_id, (const char *)sqlite3_column_text(sql_stmt, 0), MEDIA_SVC_UUID_SIZE + 1);
SQLITE3_FINALIZE(sql_stmt);
- if (!MS_STRING_VALID(storage_id)) {
+ if (!STRING_VALID(storage_id)) {
media_svc_error("Not found valid storage id [%s]", path);
ret = MS_MEDIA_ERR_INVALID_PARAMETER;
}