diff options
author | gloryj.kim <gloryj.kim@samsung.com> | 2015-03-03 21:14:49 +0900 |
---|---|---|
committer | gloryj.kim <gloryj.kim@samsung.com> | 2015-03-03 21:14:49 +0900 |
commit | d95c159060dd20d6e6308c69017127561ae45551 (patch) | |
tree | c14e32f9915ef4785edfed448642dcf020c347d9 /agent/include/download-agent-mime-util.h | |
parent | a6d45b6f285e5caa1537992e6c42dd3ddb80a430 (diff) | |
download | download-provider-d95c159060dd20d6e6308c69017127561ae45551.tar.gz download-provider-d95c159060dd20d6e6308c69017127561ae45551.tar.bz2 download-provider-d95c159060dd20d6e6308c69017127561ae45551.zip |
Initialize Tizen 3.0submit/tizen/20150304.023549accepted/tizen/wearable/20150304.124835accepted/tizen/tv/20150304.123044accepted/tizen/mobile/20150304.131032accepted/tizen/common/20150304.105331accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_common
Change-Id: I3dab60faaf5185e55536626a3cc4293d5330f234
Diffstat (limited to 'agent/include/download-agent-mime-util.h')
-rwxr-xr-x | agent/include/download-agent-mime-util.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/agent/include/download-agent-mime-util.h b/agent/include/download-agent-mime-util.h new file mode 100755 index 0000000..5f143e9 --- /dev/null +++ b/agent/include/download-agent-mime-util.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _Download_Agent_Mime_Table_H +#define _Download_Agent_Mime_Table_H + +#include "download-agent-type.h" + +#define NO_EXTENSION_NAME_STR "dat" + +#define DD_MIME_STR "application/vnd.oma.dd+xml" +#define DD_EXT_STR "*.dd" +#define DRM_MIME_MSG_STR "application/vnd.oma.drm.message" +#define DRM_EXT_STR "*.dm" +#define DRM_MIME_CONTENT_STR "application/vnd.oma.drm.content" + +typedef struct { + char *standard; + char *normal; +} Ext_translation_table; + +da_bool_t is_ambiguous_MIME_Type(const char *in_mime_type); +da_bool_t da_get_extension_name_from_url(char *url, char **ext); +da_result_t da_mime_get_ext_name(char *mime, char **ext); +da_bool_t da_get_file_name_from_url(char *url, char **name) ; +void delete_prohibited_char(char *szTarget, int str_len); +#endif |