Modify flora license version.
[platform/core/messaging/msg-service.git] / include / utils / MsgDrmWrapper.h
1 /*
2 * Copyright 2012-2013  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 __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
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif
50