Home | History | Annotate | Download | only in hdr
      1 /*****************************************************************************/
      2 /* module:          SyncML Meta Information DTD specific type definitions    */
      3 /*                                                                           */
      4 /* file:            smlmetinfdtd.h                                           */
      5 /* target system:   all                                                      */
      6 /* target OS:       all                                                      */
      7 /*                                                                           */
      8 /* Description:                                                              */
      9 /* Definition of structures representing MetInf DTD elements                 */
     10 /*****************************************************************************/
     11 
     12 
     13 /**************************************************************************/
     14 /* NOTE:                                                                  */
     15 /* These definitions are based on the MetInf DTD dated from Aug, 29th, 00 */
     16 /**************************************************************************/
     17 
     18 
     19 
     20  /*
     21  * Copyright Notice
     22  * Copyright (c) Ericsson, IBM, Lotus, Matsushita Communication
     23  * Industrial Co., Ltd., Motorola, Nokia, Openwave Systems, Inc.,
     24  * Palm, Inc., Psion, Starfish Software, Symbian, Ltd. (2001).
     25  * All Rights Reserved.
     26  * Implementation of all or part of any Specification may require
     27  * licenses under third party intellectual property rights,
     28  * including without limitation, patent rights (such a third party
     29  * may or may not be a Supporter). The Sponsors of the Specification
     30  * are not responsible and shall not be held responsible in any
     31  * manner for identifying or failing to identify any or all such
     32  * third party intellectual property rights.
     33  *
     34  * THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN ARE PROVIDED
     35  * ON AN "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND AND ERICSSON, IBM,
     36  * LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO. LTD, MOTOROLA,
     37  * NOKIA, PALM INC., PSION, STARFISH SOFTWARE AND ALL OTHER SYNCML
     38  * SPONSORS DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
     39  * BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
     40  * HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
     41  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
     42  * SHALL ERICSSON, IBM, LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO.,
     43  * LTD, MOTOROLA, NOKIA, PALM INC., PSION, STARFISH SOFTWARE OR ANY
     44  * OTHER SYNCML SPONSOR BE LIABLE TO ANY PARTY FOR ANY LOSS OF
     45  * PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF
     46  * BUSINESS, OR FOR DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL,
     47  * PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH
     48  * THIS DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED
     49  * OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
     50  *
     51  * The above notice and this paragraph must be included on all copies
     52  * of this document that are made.
     53  *
     54  */
     55 
     56 #ifndef _SML_METINFDTD_H
     57 #define _SML_METINFDTD_H
     58 
     59 /* process only if we really use MetInf DTD */
     60 #ifdef __USE_METINF__
     61 
     62 /*************************************************************************/
     63 /*  Definitions                                                          */
     64 /*************************************************************************/
     65 
     66 
     67 #include <smldef.h>
     68 #include <smldtd.h>
     69 
     70 
     71 typedef struct sml_metinf_anchor_s {
     72 	SmlPcdataPtr_t	last; /* optional */
     73 	SmlPcdataPtr_t	next;
     74 } *SmlMetInfAnchorPtr_t, SmlMetInfAnchor_t;
     75 
     76 typedef struct sml_metinf_mem_s {
     77 	SmlPcdataPtr_t	shared; /* optional */
     78 	SmlPcdataPtr_t	free;
     79 	SmlPcdataPtr_t	freeid;
     80 } *SmlMetInfMemPtr_t, SmlMetInfMem_t;
     81 
     82 typedef struct sml_metinf_metinf_s {
     83 	SmlPcdataPtr_t	format;    /* opt. */
     84 	SmlPcdataPtr_t	type;      /* opt. */
     85 	SmlPcdataPtr_t	mark;      /* opt. */
     86 	SmlPcdataPtr_t	size;      /* opt. */
     87 	SmlPcdataPtr_t  nextnonce; /* opt. */
     88 	SmlPcdataPtr_t	version;
     89 	SmlPcdataPtr_t	maxmsgsize; /* optional */
     90 	/* SCTSTK - 18/03/2002, S.H. 2002-04-05 : SyncML 1.1 */
     91 	SmlPcdataPtr_t  maxobjsize; /* optional */
     92 	SmlMetInfMemPtr_t	mem;	/* optional */
     93 	SmlPcdataListPtr_t emi; /* optional */
     94 	SmlMetInfAnchorPtr_t anchor; /* opt. */
     95 } *SmlMetInfMetInfPtr_t, SmlMetInfMetInf_t;
     96 
     97 #endif    /* __USE_METINF__ */
     98 #endif	  /* _SML_METINFDTD_H */
     99