1cf570c71b2be9b320d51714f62c6295d66d5feb
[platform/core/security/drm-service-core-tizen.git] / tadcore / include / DrmFileApi.h
1 /*
2  * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.1 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __DRM_FILE_API_H__
18 #define __DRM_FILE_API_H__
19
20
21 #include "DrmFileMgr.h"
22 #include "TADC_ErrorCode.h"
23
24 /*
25 enum
26 {
27         DRM_SEEK_SET = 0,
28         DRM_SEET_CUR,
29         DRM_SEEK_END
30 } DRM_SEEK_TYPE
31 */
32
33 //typedef int DrmHandler;
34
35 int DrmTdcFileOpen(const char* filePath, int* handle);
36
37 int DrmTdcFileClose(int* handle);
38
39 int DrmTdcFileRead(int* handle, void* pBuf, long long bufLen, long long* pReadLen);
40
41 //int DrmTdcFileSeek(int* handle, DRM_SEEK_TYPE type, long long offset);
42
43 int DrmTdcFileSeek(int* handle, long long offset, int origin);
44
45 int DrmTdcFileTell(int* handle, long long *position);
46
47 #endif