summaryrefslogtreecommitdiff
path: root/agent/include/download-agent-mime-util.h
diff options
context:
space:
mode:
authorgloryj.kim <gloryj.kim@samsung.com>2015-03-03 21:14:49 +0900
committergloryj.kim <gloryj.kim@samsung.com>2015-03-03 21:14:49 +0900
commitd95c159060dd20d6e6308c69017127561ae45551 (patch)
treec14e32f9915ef4785edfed448642dcf020c347d9 /agent/include/download-agent-mime-util.h
parenta6d45b6f285e5caa1537992e6c42dd3ddb80a430 (diff)
downloaddownload-provider-d95c159060dd20d6e6308c69017127561ae45551.tar.gz
download-provider-d95c159060dd20d6e6308c69017127561ae45551.tar.bz2
download-provider-d95c159060dd20d6e6308c69017127561ae45551.zip
Change-Id: I3dab60faaf5185e55536626a3cc4293d5330f234
Diffstat (limited to 'agent/include/download-agent-mime-util.h')
-rwxr-xr-xagent/include/download-agent-mime-util.h40
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