remove unnecessary dependancy to reduce memory use
[platform/core/messaging/msg-service.git] / include / utils / MsgDrmWrapper.h
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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 __MSG_DRM_WRAPPER_H_
18 #define __MSG_DRM_WRAPPER_H_
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 typedef enum {
25         MSG_MODE_FILE,
26         MSG_MODE_STREAM
27 } MSG_DRM_OPENMODE;
28
29 typedef enum {
30         MSG_DRM_NONE = 0,
31         MSG_DRM_FORWARD_LOCK,
32         MSG_DRM_COMBINED_DELIVERY,
33         MSG_DRM_SEPARATE_DELIVERY
34 } MSG_DRM_TYPE;
35
36
37 bool MsgDrmRegisterFile(MSG_DRM_OPENMODE eMode, char *pBuffer, int nSize);
38 bool MsgDrmUnregisterFile(char *szFilename);
39 bool MsgDrmIsDrmFile(const char *szFilePath);
40 bool MsgDrmGetMimeTypeEx(const char *szFileName, char *szMimeType, int nMimeTypeLen);
41 bool MsgDrmGetContentID(const char *szFileName, char *szContentID, int nContentIDLen);
42 bool MsgDrmGetDrmType(const char *szFileName, MSG_DRM_TYPE *eDRMType);
43 bool MsgDrmConvertDmtoDcfType(char *inputFile, char *outputFile);
44 bool MsgDrmCheckRingtone(const char *ringtonePath);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif
51