ff5df1bd7d36450b04db5dc90f406aa08b977f93
[framework/web/download-provider.git] / src / agent / include / download-agent-plugin-drm.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-plugin-drm.h
21  * @brief               Including plugin functions for emerald DRM from SISO
22  * @author              Keunsoon Lee(keunsoon.lee@samsung.com)
23  ***/
24
25
26 #ifndef _Download_Agent_Plugin_Drm_H
27 #define _Download_Agent_Plugin_Drm_H
28
29 #include "download-agent-type.h"
30
31 da_bool_t EDRM_check_dcf_file(const char *file_path);
32 da_bool_t EDRM_has_vaild_ro(const char *file_path);
33 da_bool_t EDRM_open_convert (const char *file_path, void **fd);
34 da_bool_t EDRM_write_convert (void *fd, unsigned char *buffer, int buffer_size);
35 da_bool_t EDRM_close_convert (void **fd);
36 da_result_t EDRM_wm_get_license (char *rights_url, char **out_content_url);
37
38
39 #endif