1 /* ==================================================================== 
     2  * The Kannel Software License, Version 1.0 
     4  * Copyright (c) 2001-2018 Kannel Group  
     5  * Copyright (c) 1998-2001 WapIT Ltd.   
     8  * Redistribution and use in source and binary forms, with or without 
     9  * modification, are permitted provided that the following conditions 
    12  * 1. Redistributions of source code must retain the above copyright 
    13  *    notice, this list of conditions and the following disclaimer. 
    15  * 2. Redistributions in binary form must reproduce the above copyright 
    16  *    notice, this list of conditions and the following disclaimer in 
    17  *    the documentation and/or other materials provided with the 
    20  * 3. The end-user documentation included with the redistribution, 
    21  *    if any, must include the following acknowledgment: 
    22  *       "This product includes software developed by the 
    23  *        Kannel Group (http://www.kannel.org/)." 
    24  *    Alternately, this acknowledgment may appear in the software itself, 
    25  *    if and wherever such third-party acknowledgments normally appear. 
    27  * 4. The names "Kannel" and "Kannel Group" must not be used to 
    28  *    endorse or promote products derived from this software without 
    29  *    prior written permission. For written permission, please  
    30  *    contact org@kannel.org. 
    32  * 5. Products derived from this software may not be called "Kannel", 
    33  *    nor may "Kannel" appear in their name, without prior written 
    34  *    permission of the Kannel Group. 
    36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 
    37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
    38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
    39  * DISCLAIMED.  IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS 
    40  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
    41  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT  
    42  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR  
    43  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,  
    44  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE  
    45  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,  
    46  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    47  * ==================================================================== 
    49  * This software consists of voluntary contributions made by many 
    50  * individuals on behalf of the Kannel Group.  For more information on  
    51  * the Kannel Group, please see <http://www.kannel.org/>. 
    53  * Portions of this software are based upon software originally written at  
    54  * WapIT Ltd., Helsinki, Finland for the Kannel project.  
    57 /****  Preprocessor magic ****/
    59 /* Entry in a LINEAR table.  Default is to do nothing for it. */
    64 /* String table where entries have assigned numbers.  Multiple
    65  * entries can have the same number (the first listed entry is used
    66  * when looking up by number). */
    67 #if !defined(NUMBERED)
    68 #define NUMBERED LINEAR
    71 /* Entry in a NUMBERED table */
    73 #define ASSIGN(string, number) STRING(string)
    76 /**** End of preprocessor magic.  Tables start here. ****/
    78 /* Registered WSP Content Type Codes Assignments. 
    79  * Now they are maintained by OMNA, see URL
    81  * http://www.openmobilealliance.org/tech/omna/index.htm (depricated)
    82  * http://www.openmobilealliance.org/Technical/omna/omna-wbxml-public-docid.aspx
    85 /* Well-Known Values */
    86 ASSIGN("-//WAPFORUM//DTD WML 1.0//EN", 0x02)           
    87 ASSIGN("-//WAPFORUM//DTD WTA 1.0//EN", 0x03)               
    88 ASSIGN("-//WAPFORUM//DTD WML 1.1//EN", 0x04)           
    89 ASSIGN("-//WAPFORUM//DTD SI 1.0//EN", 0x05)            
    90 ASSIGN("-//WAPFORUM//DTD SL 1.0//EN", 0x06)            
    91 ASSIGN("-//WAPFORUM//DTD CO 1.0//EN", 0x07)            
    92 ASSIGN("-//WAPFORUM//DTD CHANNEL 1.1//EN", 0x08)       
    93 ASSIGN("-//WAPFORUM//DTD WML 1.2//EN", 0x09)           
    94 ASSIGN("-//WAPFORUM//DTD WML 1.3//EN", 0x0A)           
    95 ASSIGN("-//WAPFORUM//DTD PROV 1.0//EN", 0x0B)          
    96 ASSIGN("-//WAPFORUM//DTD WTA-WML 1.2//EN", 0x0C)       
    97 ASSIGN("-//WAPFORUM//DTD EMN 1.0//EN", 0x0D)           
    98 ASSIGN("-//OMA//DTD DRMREL 1.0//EN", 0x0E)             
    99 ASSIGN("-//WIRELESSVILLAGE//DTD CSP 1.0//EN", 0x0F)    
   100 ASSIGN("-//WIRELESSVILLAGE//DTD CSP 1.1//EN", 0x10)    
   101 ASSIGN("-//OMA//DTD WV-CSP 1.2//EN", 0x11)             
   102 ASSIGN("-//OMA//DTD IMPS-CSP 1.3//EN", 0x12)           
   103 ASSIGN("-//OMA//DRM 2.1//EN", 0x13)           
   104 ASSIGN("-//OMA//SRM 1.0//EN", 0x14)           
   105 /* Registered Values */
   106 ASSIGN("-//PHONE.COM//DTD ALERT 1.0//EN", 0x1100)
   107 ASSIGN("-//PHONE.COM//DTD CACHE-OPERATION 1.0//EN", 0x1101)
   108 ASSIGN("-//PHONE.COM//DTD SIGNAL 1.0//EN", 0x1102)
   109 ASSIGN("-//PHONE.COM//DTD LIST 1.0//EN", 0x1103)
   110 ASSIGN("-//PHONE.COM//DTD LISTCMD 1.0//EN", 0x1104)
   111 ASSIGN("-//PHONE.COM//DTD CHANNEL 1.0//EN", 0x1105)
   112 ASSIGN("-//PHONE.COM//DTD MMC 1.0//EN", 0x1106)
   113 ASSIGN("-//PHONE.COM//DTD BEARER-CHOICE 1.0//EN", 0x1107)
   114 ASSIGN("-//PHONE.COM//DTD WML 1.1//EN", 0x1108)
   115 ASSIGN("-//PHONE.COM//DTD CHANNEL 1.1//EN", 0x1109)
   116 ASSIGN("-//PHONE.COM//DTD LIST 1.1//EN", 0x110A)
   117 ASSIGN("-//PHONE.COM//DTD LISTCMD 1.1//EN", 0x110B)
   118 ASSIGN("-//PHONE.COM//DTD MMC 1.1//EN", 0x110C)
   119 ASSIGN("-//PHONE.COM//DTD WML 1.3//EN", 0x110D)
   120 ASSIGN("-//PHONE.COM//DTD MMC 2.0//EN", 0x110E)
   121 ASSIGN("-//3GPP2.COM//DTD IOTA 1.0//EN", 0x1200)
   122 ASSIGN("-//SYNCML//DTD SyncML 1.2//EN", 0x1201)
   123 ASSIGN("-//SYNCML//DTD MetaInf 1.2//EN", 0x1202)
   124 ASSIGN("-//SYNCML//DTD DevInf 1.2//EN", 0x1203)
   125 ASSIGN("-//NOKIA//DTD LANDMARKS 1.0//EN", 0x1204)
   128 /**** More preprocessor magic ****/