Home | History | Annotate | Download | only in include
      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 SYNCML_DATA_H
     19 #define SYNCML_DATA_H
     20 
     21 #include "wbxml_tabledef.h"
     22 
     23 #ifdef __cplusplus
     24 extern "C" {
     25 #endif
     26 
     27 /* SyncML code page (0x00) */
     28 static const TokenData syncmlTagPage0[] = {
     29     {0x05, "Add"},
     30     {0x06, "Alert"},
     31     {0x07, "Archive"},
     32     {0x08, "Atomic"},
     33     {0x09, "Chal"},
     34     {0x0A, "Cmd"},
     35     {0x0B, "CmdID"},
     36     {0x0C, "CmdRef"},
     37     {0x0D, "Copy"},
     38     {0x0E, "Cred"},
     39     {0x0F, "Data"},
     40     {0x10, "Delete"},
     41     {0x11, "Exec"},
     42     {0x12, "Final"},
     43     {0x13, "Get"},
     44     {0x14, "Item"},
     45     {0x15, "Lang"},
     46     {0x16, "LocName"},
     47     {0x17, "LocURI"},
     48     {0x18, "Map"},
     49     {0x19, "MapItem"},
     50     {0x1A, "Meta"},
     51     {0x1B, "MsgID"},
     52     {0x1C, "MsgRef"},
     53     {0x1D, "NoResp"},
     54     {0x1E, "NoResults"},
     55     {0x1F, "Put"},
     56     {0x20, "Replace"},
     57     {0x21, "RespURI"},
     58     {0x22, "Results"},
     59     {0x23, "Search"},
     60     {0x24, "Sequence"},
     61     {0x25, "SessionID"},
     62     {0x26, "SftDel"},
     63     {0x27, "Source"},
     64     {0x28, "SourceRef"},
     65     {0x29, "Status"},
     66     {0x2A, "Sync"},
     67     {0x2B, "SyncBody"},
     68     {0x2C, "SyncHdr"},
     69     {0x2D, "SyncML"},
     70     {0x2E, "Target"},
     71     {0x2F, "TargetRef"},
     72     {0x31, "VerDTD"},
     73     {0x32, "VerProto"},
     74     {0x33, "NumberOfChanges"},
     75     {0x34, "MoreData"},
     76     {0x35, "Field"},
     77     {0x36, "Filter"},
     78     {0x37, "Record"},
     79     {0x38, "FilterType"},
     80     {0x39, "SourceParent"},
     81     {0x3A, "TargetParent"},
     82     {0x3B, "Move"},
     83     {0x3C, "Correlator"},
     84 };
     85 
     86 /* MetInf code page (0x01) */
     87 static const TokenData syncmlTagPage1[] = {
     88     {0x05, "Anchor"},
     89     {0x06, "EMI"},
     90     {0x07, "Format"},
     91     {0x08, "FreeID"},
     92     {0x09, "FreeMem"},
     93     {0x0A, "Last"},
     94     {0x0B, "Mark"},
     95     {0x0C, "MaxMsgSize"},
     96     {0x0D, "Mem"},
     97     {0x0E, "MetInf"},
     98     {0x0F, "Next"},
     99     {0x10, "NextNonce"},
    100     {0x11, "SharedMem"},
    101     {0x12, "Size"},
    102     {0x13, "Type"},
    103     {0x14, "Version"},
    104     {0x15, "MaxObjSize"},
    105     {0x16, "FieldLevel"},
    106 };
    107 
    108 /* DevInf code page (0x00) */
    109 static const TokenData syncmlDevInfTagPage[] = {
    110     {0x05, "CTCap"},
    111     {0x06, "CTType"},
    112     {0x07, "DataStore"},
    113     {0x08, "DataType"},
    114     {0x09, "DevID"},
    115     {0x0A, "DevInf"},
    116     {0x0B, "DevTyp"},
    117     {0x0C, "DisplayName"},
    118     {0x0D, "DSMem"},
    119     {0x0E, "Ext"},
    120     {0x0F, "FwV"},
    121     {0x10, "HwV"},
    122     {0x11, "Man"},
    123     {0x12, "MaxGUIDSize"},
    124     {0x13, "MaxID"},
    125     {0x14, "MaxMem"},
    126     {0x15, "Mod"},
    127     {0x16, "OEM"},
    128     {0x17, "ParamName"},
    129     {0x18, "PropName"},
    130     {0x19, "Rx"},
    131     {0x1A, "Rx-Pref"},
    132     {0x1B, "SharedMem"},
    133     {0x1C, "MaxSize"},
    134     {0x1D, "SourceRef"},
    135     {0x1E, "SwV"},
    136     {0x1F, "SyncCap"},
    137     {0x20, "SyncType"},
    138     {0x21, "Tx"},
    139     {0x22, "Tx-Pref"},
    140     {0x23, "ValEnum"},
    141     {0x24, "VerCT"},
    142     {0x25, "VerDTD"},
    143     {0x26, "Xnam"},
    144     {0x27, "Xval"},
    145     {0x28, "UTC"},
    146     {0x29, "SupportNumberOfChanges"},
    147     {0x2A, "SupportLargeObjs"},
    148     {0x2B, "Property"},
    149     {0x2C, "PropParam"},
    150     {0x2D, "MaxOccur"},
    151     {0x2E, "NoTruncate"},
    152     {0x30, "Filter-Rx"},
    153     {0x31, "FilterCap"},
    154     {0x32, "FilterKeyword"},
    155     {0x33, "FieldLevel"},
    156     {0x34, "SupportHierarchicalSync"},
    157 };
    158 
    159 static const TagCodePage syncmlTagPages[] = {
    160     PAGE_DATA(0, syncmlTagPage0),
    161     PAGE_DATA(1, syncmlTagPage1),
    162 };
    163 
    164 static const TagCodePage syncmlDevInfTagPages[] = {
    165     PAGE_DATA(0, syncmlDevInfTagPage),
    166 };
    167 
    168 #ifdef __cplusplus
    169 }
    170 #endif
    171 
    172 #endif
    173