* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#ifndef __DRMFILEHANDLER_H_
+#define __DRMFILEHANDLER_H_
#include <stdio.h>
#include "DrmTdcSvc.h"
-class DrmFileHandler
-{
-
+class DrmFileHandler {
public:
DrmFileHandler(void);
~DrmFileHandler(void);
- int Construct(const char* szDrmFilePath);
- int DrmSeek(long long offset, int origin);
+ int Construct(const char *szDrmFilePath);
+ int DrmSeek(long long offset, int origin);
long long DrmTell(void);
- int DrmRead(void* pBuf, long long bufLen, long long* pReadLen);
+ int DrmRead(void *pBuf, long long bufLen, long long *pReadLen);
#ifndef TEST_CODE_ENABLED
private:
#endif
- int DrmDecryptBlocks(void);
+ int DrmDecryptBlocks(void);
long long GetCurBlockIndex(void);
unsigned char *m_pFilePath;
unsigned char *m_pCEK;
unsigned char *m_pDecBuf;
- int m_PlaintextStartOffset;
+ int m_PlaintextStartOffset;
FILE *m_pFP;
long m_encryptionLevel;
long long m_decReadlen;
long long m_extraReadlen;
};
+
+#endif //__DRMFILEHANDLER_H_