1 /* 2 * Copyright (C) 2008 Esmertec AG. 3 * Copyright (C) 2008 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 #ifndef WBXML_CONST_H 19 #define WBXML_CONST_H 20 21 enum WbxmlStatus 22 { 23 WBXML_STATUS_ERROR = 0, 24 WBXML_STATUS_OK = 1, 25 }; 26 27 enum IanaCharset 28 { 29 CHARSET_UNKNOWN = 0, 30 CHARSET_UTF8 = 0x6a, 31 }; 32 33 enum PublicId 34 { 35 PUBLICID_IMPS_1_3 = 0x12, 36 PUBLICID_IMPS_1_2 = 0x11, 37 PUBLICID_IMPS_1_1 = 0x10, 38 PUBLICID_SYNCML_1_0 = 0xFD1, 39 PUBLICID_SYNCML_1_1 = 0xFD3, 40 PUBLICID_SYNCML_1_2 = 0x1201, 41 PUBLICID_SYNCML_METINF_1_2 = 0x1202, 42 PUBLICID_SYNCML_DEVINF_1_2 = 0x1203, 43 }; 44 45 enum WbxmlToken { 46 TOKEN_SWITCH_PAGE = 0, 47 TOKEN_END = 1, 48 TOKEN_ENTITY = 2, 49 TOKEN_STR_I = 3, 50 TOKEN_LITERAL = 4, 51 TOKEN_EXT_I_0 = 0x40, 52 TOKEN_EXT_I_1 = 0x41, 53 TOKEN_EXT_I_2 = 0x42, 54 TOKEN_PI = 0x43, 55 TOKEN_LITERAL_C = 0x44, 56 TOKEN_EXT_T_0 = 0x80, 57 TOKEN_EXT_T_1 = 0x81, 58 TOKEN_EXT_T_2 = 0x82, 59 TOKEN_STR_T = 0x83, 60 TOKEN_LITERAL_A = 0x84, 61 TOKEN_EXT_0 = 0xC0, 62 TOKEN_EXT_1 = 0xC1, 63 TOKEN_EXT_2 = 0xC2, 64 TOKEN_OPAQUE = 0xC3, 65 TOKEN_LITERAL_AC = 0xC4, 66 }; 67 68 #endif 69 70