2 * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd.
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
8 * http://floralicense.org/license/
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.
17 #ifndef __DRM_FILE_API_H__
18 #define __DRM_FILE_API_H__
21 #include "DrmFileMgr.h"
22 #include "TADC_ErrorCode.h"
33 //typedef int DrmHandler;
35 int DrmTdcFileOpen(const char* filePath, int* handle);
37 int DrmTdcFileClose(int* handle);
39 int DrmTdcFileRead(int* handle, void* pBuf, long long bufLen, long long* pReadLen);
41 //int DrmTdcFileSeek(int* handle, DRM_SEEK_TYPE type, long long offset);
43 int DrmTdcFileSeek(int* handle, long long offset, int origin);
45 int DrmTdcFileTell(int* handle, long long *position);