Home | History | Annotate | Download | only in src
      1 /*************************************************************************/
      2 /* module:          Definition of MetaInf DTD prototypefunctions         */
      3 /*                  for the en-/decoder                                  */
      4 /* file:            xltmetinf.h                                          */
      5 /* target system:   all                                                  */
      6 /* target OS:       all                                                  */
      7 /*************************************************************************/
      8 
      9 /*
     10  * Copyright Notice
     11  * Copyright (c) Ericsson, IBM, Lotus, Matsushita Communication
     12  * Industrial Co., Ltd., Motorola, Nokia, Openwave Systems, Inc.,
     13  * Palm, Inc., Psion, Starfish Software, Symbian, Ltd. (2001).
     14  * All Rights Reserved.
     15  * Implementation of all or part of any Specification may require
     16  * licenses under third party intellectual property rights,
     17  * including without limitation, patent rights (such a third party
     18  * may or may not be a Supporter). The Sponsors of the Specification
     19  * are not responsible and shall not be held responsible in any
     20  * manner for identifying or failing to identify any or all such
     21  * third party intellectual property rights.
     22  *
     23  * THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN ARE PROVIDED
     24  * ON AN "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND AND ERICSSON, IBM,
     25  * LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO. LTD, MOTOROLA,
     26  * NOKIA, PALM INC., PSION, STARFISH SOFTWARE AND ALL OTHER SYNCML
     27  * SPONSORS DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
     28  * BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
     29  * HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
     30  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
     31  * SHALL ERICSSON, IBM, LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO.,
     32  * LTD, MOTOROLA, NOKIA, PALM INC., PSION, STARFISH SOFTWARE OR ANY
     33  * OTHER SYNCML SPONSOR BE LIABLE TO ANY PARTY FOR ANY LOSS OF
     34  * PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF
     35  * BUSINESS, OR FOR DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL,
     36  * PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH
     37  * THIS DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED
     38  * OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
     39  *
     40  * The above notice and this paragraph must be included on all copies
     41  * of this document that are made.
     42  *
     43  */
     44 
     45 #ifndef _XLT_METINF_H
     46 #define _XLT_METINF_H
     47 
     48 /* process only if we really use MetInf DTD */
     49 #ifdef __USE_METINF__
     50 
     51 /*************************************************************************/
     52 /*  Definitions                                                          */
     53 /*************************************************************************/
     54 
     55 #include "xlttagtbl.h"
     56 #include "xltenc.h"
     57 
     58 #ifdef __USE_DMTND__
     59 #define META_TYPE_TNDS_XML   "application/vnd.syncml.dmtnds+xml"
     60 #define META_TYPE_TNDS_WBXML "application/vnd.syncml.dmtnds+wbxml"
     61 #endif
     62 
     63 Ret_t buildMetInfAnchorCmd(XltDecoderPtr_t pDecoder, VoidPtr_t *ppElem);
     64 Ret_t buildMetInfMetInfCmd(XltDecoderPtr_t pDecoder, VoidPtr_t *ppElem);
     65 Ret_t buildMetInfMemCmd(XltDecoderPtr_t pDecoder, VoidPtr_t *ppElem);
     66 Ret_t metinfEncBlock(XltTagID_t tagId, XltRO_t reqOptFlag, const VoidPtr_t pContent, SmlEncoding_t enc, BufferMgmtPtr_t pBufMgr, SmlPcdataExtension_t attFlag);
     67 #endif    /* __USE_METINF__ */
     68 #endif	  /* _XLT_METINF_H */
     69 
     70