1/*
2 * Copyright (C) 2007 The Android Open Source Project
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 __WBXML_TINYPARSER_H__
18#define __WBXML_TINYPARSER_H__
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <drm_common_types.h>
25
26#define REL_TAG_RIGHTS                                       0x05
27#define REL_TAG_CONTEXT                                      0x06
28#define REL_TAG_VERSION                                      0x07
29#define REL_TAG_UID                                          0x08
30#define REL_TAG_AGREEMENT                                    0x09
31#define REL_TAG_ASSET                                        0x0A
32#define REL_TAG_KEYINFO                                      0x0B
33#define REL_TAG_KEYVALUE                                     0x0C
34#define REL_TAG_PERMISSION                                   0x0D
35#define REL_TAG_PLAY                                         0x0E
36#define REL_TAG_DISPLAY                                      0x0F
37#define REL_TAG_EXECUTE                                      0x10
38#define REL_TAG_PRINT                                        0x11
39#define REL_TAG_CONSTRAINT                                   0x12
40#define REL_TAG_COUNT                                        0x13
41#define REL_TAG_DATETIME                                     0x14
42#define REL_TAG_START                                        0x15
43#define REL_TAG_END                                          0x16
44#define REL_TAG_INTERVAL                                     0x17
45
46#define REL_CHECK_WBXML_HEADER(x) ((x != NULL) && (x[0] == 0x03) && (x[1] == 0x0E) && (x[2] == 0x6A))
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* __WBXML_TINYPARSER_H__ */
53