The download provider daemon is added newly.
[profile/ivi/download-provider.git] / src / agent / include / download-agent-mime-util.h
1 /*
2  * Download Agent
3  *
4  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jungki Kwak <jungki.kwak@samsung.com>, Keunsoon Lee <keunsoon.lee@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  * @file                download-agent-mime-util.h
21  * @brief
22  * @author              Keunsoon Lee(keunsoon.lee@samsung.com)
23  * @author              Jungki Kwak(jungki.kwak@samsung.com)
24  ***/
25
26 #ifndef _Download_Agent_Mime_Table_H
27 #define _Download_Agent_Mime_Table_H
28
29 #include "download-agent-type.h"
30
31 #define NO_EXTENSION_NAME_STR "dat"
32
33 typedef struct {
34         char *standard;
35         char *normal;
36 } Ext_translation_table;
37
38 da_bool_t is_ambiguous_MIME_Type(const char *in_mime_type);
39 da_bool_t da_get_extension_name_from_url(char* url, char** ext);
40 da_result_t  da_mime_get_ext_name(char* mime, char **ext);
41 da_bool_t da_get_file_name_from_url(char* url, char** name) ;
42 void delete_prohibited_char(char* szTarget, int str_len);
43 #endif