📄 wbxml_tables.c
字号:
/*************************************************** * CHANNEL 1.1 (WAP 1.1: "SPEC-WTA-19990716.pdf") */const WBXMLTagEntry sv_channel11_tag_table[] = { { "channel", 0x00, 0x05 }, { "title", 0x00, 0x06 }, { "abstract", 0x00, 0x07 }, { "resource", 0x00, 0x08 }, { NULL, 0x00, 0x00 }};const WBXMLAttrEntry sv_channel11_attr_table[] = { { "maxspace", NULL, 0x00, 0x05 }, { "base", NULL, 0x00, 0x06 }, { "href", NULL, 0x00, 0x07 }, { "href", "http://", 0x00, 0x08 }, { "href", "https://", 0x00, 0x09 }, { "lastmod", NULL, 0x00, 0x0a }, { "etag", NULL, 0x00, 0x0b }, { "md5", NULL, 0x00, 0x0c }, { "success", NULL, 0x00, 0x0d }, { "success", "http://", 0x00, 0x0e }, { "success", "https://", 0x00, 0x0f }, { "failure", NULL, 0x00, 0x10 }, { "failure", "http://", 0x00, 0x11 }, { "failure", "https://", 0x00, 0x12 }, { "EventId", NULL, 0x00, 0x13 }, { NULL, NULL, 0x00, 0x00 }};/*********************************************** * CHANNEL 1.2 ("WAP-266-WTA-20010908-a.pdf") */const WBXMLTagEntry sv_channel12_tag_table[] = { { "channel", 0x00, 0x05 }, { "title", 0x00, 0x06 }, { "abstract", 0x00, 0x07 }, { "resource", 0x00, 0x08 }, { NULL, 0x00, 0x00 }};const WBXMLAttrEntry sv_channel12_attr_table[] = { { "maxspace", NULL, 0x00, 0x05 }, { "base", NULL, 0x00, 0x06 }, { "href", NULL, 0x00, 0x07 }, { "href", "http://", 0x00, 0x08 }, { "href", "https://", 0x00, 0x09 }, { "lastmod", NULL, 0x00, 0x0a }, { "etag", NULL, 0x00, 0x0b }, { "md5", NULL, 0x00, 0x0c }, { "success", NULL, 0x00, 0x0d }, { "success", "http://", 0x00, 0x0e }, { "success", "https://", 0x00, 0x0f }, { "failure", NULL, 0x00, 0x10 }, { "failure", "http://", 0x00, 0x11 }, { "failure", "https://", 0x00, 0x12 }, { "eventid", NULL, 0x00, 0x13 }, { "eventid", "wtaev-", 0x00, 0x14 }, { "channelid", NULL, 0x00, 0x15 }, { "useraccessible", NULL, 0x00, 0x16 }, { NULL, NULL, 0x00, 0x00 }};#endif /* WBXML_SUPPORT_WTA */#if defined( WBXML_SUPPORT_SI )/************************************************* * SI 1.0 ("WAP-167-ServiceInd-20010731-a.pdf") */const WBXMLTagEntry sv_si10_tag_table[] = { { "si", 0x00, 0x05 }, { "indication", 0x00, 0x06 }, { "info", 0x00, 0x07 }, { "item", 0x00, 0x08 }, { NULL, 0x00, 0x00 }};const WBXMLAttrEntry sv_si10_attr_table[] = { { "action", "signal-none", 0x00, 0x05 }, { "action", "signal-low", 0x00, 0x06 }, { "action", "signal-medium", 0x00, 0x07 }, { "action", "signal-high", 0x00, 0x08 }, { "action", "delete", 0x00, 0x09 }, { "created", NULL, 0x00, 0x0a }, { "href", NULL, 0x00, 0x0b }, /* Do NOT change the order in this table please ! */ { "href", "http://www.", 0x00, 0x0d }, { "href", "http://", 0x00, 0x0c }, { "href", "https://www.", 0x00, 0x0f }, { "href", "https://", 0x00, 0x0e }, { "si-expires", NULL, 0x00, 0x10 }, { "si-id", NULL, 0x00, 0x11 }, { "class", NULL, 0x00, 0x12 }, { NULL, NULL, 0x00, 0x00 }};const WBXMLAttrValueEntry sv_si10_attr_value_table[] = { { ".com/", 0x00, 0x85 }, { ".edu/", 0x00, 0x86 }, { ".net/", 0x00, 0x87 }, { ".org/", 0x00, 0x88 }, { NULL, 0x00, 0x00 }};#endif /* WBXML_SUPPORT_SI */#if defined( WBXML_SUPPORT_SL )/************************************************** * SL 1.0 ("WAP-168-ServiceLoad-20010731-a.pdf") */const WBXMLTagEntry sv_sl10_tag_table[] = { { "sl", 0x00, 0x05 }, { NULL, 0x00, 0x00 }};const WBXMLAttrEntry sv_sl10_attr_table[] = { { "action", "execute-low", 0x00, 0x05 }, { "action", "execute-high", 0x00, 0x06 }, { "action", "cache", 0x00, 0x07 }, { "href", NULL, 0x00, 0x08 }, /* Do NOT change the order in this table please ! */ { "href", "http://www.", 0x00, 0x0a }, { "href", "http://", 0x00, 0x09 }, { "href", "https://www.", 0x00, 0x0c }, { "href", "https://", 0x00, 0x0b }, { NULL, NULL, 0x00, 0x00 }};const WBXMLAttrValueEntry sv_sl10_attr_value_table[] = { { ".com/", 0x00, 0x85 }, { ".edu/", 0x00, 0x86 }, { ".net/", 0x00, 0x87 }, { ".org/", 0x00, 0x88 }, { NULL, 0x00, 0x00 }};#endif /* WBXML_SUPPORT_SL */#if defined( WBXML_SUPPORT_CO )/*********************************************** * CO 1.0 ("WAP-175-CacheOp-20010731-a.pdf") */const WBXMLTagEntry sv_co10_tag_table[] = { { "co", 0x00, 0x05 }, { "invalidate-object", 0x00, 0x06 }, { "invalidate-service", 0x00, 0x07 }, { NULL, 0x00, 0x00 }};const WBXMLAttrEntry sv_co10_attr_table[] = { { "uri", NULL, 0x00, 0x05 }, /* Do NOT change the order in this table please ! */ { "uri", "http://www.", 0x00, 0x07 }, { "uri", "http://", 0x00, 0x06 }, { "uri", "https://www.", 0x00, 0x09 }, { "uri", "https://", 0x00, 0x08 }, { NULL, NULL, 0x00, 0x00 }};const WBXMLAttrValueEntry sv_co10_attr_value_table[] = { { ".com/", 0x00, 0x85 }, { ".edu/", 0x00, 0x86 }, { ".net/", 0x00, 0x87 }, { ".org/", 0x00, 0x88 }, { NULL, 0x00, 0x00 }};#endif /* WBXML_SUPPORT_CO */#if defined( WBXML_SUPPORT_PROV )/** Use OMA PROV 1.1 Tables (only 'sv_prov10_attr_value_table' changed) */#define WBXML_SUPPORT_PROV_11/********************************************************** * PROV 1.0 * WAP 2.0: "WAP-183-PROVCONT-20010724-a.pdf" * OMA: "OMA-WAP-ProvCont-v1_1-20021112-C.PDF" * * PROV 1.1 * OMA: OMA-WAP-ProvCont-v1_1-20050428-Cchangebars.doc * There is no new Public ID defined for this new version, * so how should we handle this ?? */const WBXMLTagEntry sv_prov10_tag_table[] = { { "wap-provisioningdoc", 0x00, 0x05 }, { "characteristic", 0x00, 0x06 }, { "parm", 0x00, 0x07 }, { "characteristic", 0x01, 0x06 }, /* OMA */ { "parm", 0x01, 0x07 }, /* OMA */ { NULL, 0x00, 0x00 }};const WBXMLAttrEntry sv_prov10_attr_table[] = { /* Wap-provisioningdoc */ { "version", NULL, 0x00, 0x45 }, { "version", "1.0", 0x00, 0x46 }, /* Characteristic */ { "type", NULL, 0x00, 0x50 }, { "type", "PXLOGICAL", 0x00, 0x51 }, { "type", "PXPHYSICAL", 0x00, 0x52 }, { "type", "PORT", 0x00, 0x53 }, { "type", "VALIDITY", 0x00, 0x54 }, { "type", "NAPDEF", 0x00, 0x55 }, { "type", "BOOTSTRAP", 0x00, 0x56 }, { "type", "VENDORCONFIG", 0x00, 0x57 }, { "type", "CLIENTIDENTITY", 0x00, 0x58 }, { "type", "PXAUTHINFO", 0x00, 0x59 }, { "type", "NAPAUTHINFO", 0x00, 0x5a }, { "type", "ACCESS", 0x00, 0x5b }, /* OMA */ { "type", NULL, 0x01, 0x50 }, /* OMA */ { "type", "PORT", 0x01, 0x53 }, /* OMA */ { "type", "CLIENTIDENTITY", 0x01, 0x58 }, /* OMA */ { "type", "APPLICATION", 0x01, 0x55 }, /* OMA */ { "type", "APPADDR", 0x01, 0x56 }, /* OMA */ { "type", "APPAUTH", 0x01, 0x57 }, /* OMA */ { "type", "RESOURCE", 0x01, 0x59 }, /* OMA */ /* Parm */ { "name", NULL, 0x00, 0x05 }, { "value", NULL, 0x00, 0x06 }, { "name", "NAME"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -