• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
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
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 #ifndef CPM_TYPES_H
19 #define CPM_TYPES_H
20 
21 #ifndef OSCL_BASE_H_INCLUDED
22 #include "oscl_base.h"
23 #endif
24 
25 typedef uint32 PVMFCPMContentType;
26 
27 /* CPM Usage Key Strings */
28 #define PVMF_CPM_REQUEST_USE_KEY_STRING "x-pvmf/cpm/intent;valtype=bitarray32;name=pvmfcpmintent;version=1.0"
29 #define PVMF_CPM_AUTHORIZATION_DATA_KEY_STRING "x-pvmf/cpm/intent;valtype=uint8*"
30 
31 #define PVMF_CPM_DEFAULT_PLUGIN_AUTHORIZATION_TIMEOUT_IN_MS 3000
32 
33 #define BITMASK_PVMF_CPM_DRM_INTENT_PLAY          0x00000001
34 #define BITMASK_PVMF_CPM_DRM_INTENT_PAUSE         0x00000002
35 #define BITMASK_PVMF_CPM_DRM_INTENT_RESUME        0x00000004
36 #define BITMASK_PVMF_CPM_DRM_INTENT_SEEK_FORWARD  0x00000008
37 #define BITMASK_PVMF_CPM_DRM_INTENT_SEEK_BACK     0x00000010
38 #define BITMASK_PVMF_CPM_DRM_INTENT_STOP          0x00000020
39 #define BITMASK_PVMF_CPM_DRM_INTENT_PRINT         0x00000040
40 #define BITMASK_PVMF_CPM_DRM_INTENT_DOWNLOAD      0x00000080
41 #define BITMASK_PVMF_CPM_DRM_INTENT_SAVE          0x00000100
42 #define BITMASK_PVMF_CPM_DRM_INTENT_EXECUTE       0x00000200
43 #define BITMASK_PVMF_CPM_DRM_INTENT_PREVIEW       0x00000400
44 
45 /* MIME strings for CPM Plugins */
46 #define PVMF_CPM_MIME_PV_PARENTAL_CONTROL   "X-PV-PARENTAL-CONTROL"
47 
48 /* MIME strings for CPM Content Formats */
49 #define PVMF_CPM_MIME_CONTENT_FORMAT_UKNOWN "X-PV-CPM-UNKNOWN-CONTENT-TYPE"
50 
51 /* CPM Content Formats */
52 #define PVMF_FIRST_CPM_CONTENT_FORMAT   2000
53 #define PVMF_CPM_CONTENT_FORMAT_UNKNOWN             PVMF_FIRST_CPM_CONTENT_FORMAT
54 #define PVMF_CPM_FORMAT_OMA1                        PVMF_FIRST_CPM_CONTENT_FORMAT+1
55 #define PVMF_CPM_FORMAT_OMA2                        PVMF_FIRST_CPM_CONTENT_FORMAT+2
56 #define PVMF_CPM_FORMAT_AUTHORIZE_BEFORE_ACCESS     PVMF_FIRST_CPM_CONTENT_FORMAT+3
57 #define PVMF_CPM_FORMAT_ACCESS_BEFORE_AUTHORIZE     PVMF_FIRST_CPM_CONTENT_FORMAT+4
58 /*
59  * When adding types to this range, please update the following
60  * value to equal the last defined format.
61  */
62 #define PVMF_LAST_CPM_CONTENT_FORMAT    PVMF_FIRST_CPM_CONTENT_FORMAT+4
63 
64 #endif //CPM_TYPES_H
65 
66