head 1.12; access; symbols XDS_0_9_3:1.12 XDS_0_9_2:1.12 XDS_0_9_1:1.11 XDS_0_9_0:1.10; locks; strict; comment @ * @; 1.12 date 2005.06.02.18.51.44; author rse; state Exp; branches; next 1.11; 1.11 date 2004.09.12.17.32.14; author rse; state Exp; branches; next 1.10; 1.10 date 2003.02.17.12.36.02; author rse; state Exp; branches; next 1.9; 1.9 date 2002.03.17.10.25.53; author rse; state Exp; branches; next 1.8; 1.8 date 2002.01.02.17.13.44; author rse; state Exp; branches; next 1.7; 1.7 date 2001.08.22.20.23.22; author simons; state Exp; branches; next 1.6; 1.6 date 2001.08.12.11.31.45; author rse; state Exp; branches; next 1.5; 1.5 date 2001.08.11.15.23.09; author rse; state Exp; branches; next 1.4; 1.4 date 2001.08.09.19.58.35; author rse; state Exp; branches; next 1.3; 1.3 date 2001.08.08.19.33.55; author rse; state Exp; branches; next 1.2; 1.2 date 2001.08.08.19.29.26; author rse; state Exp; branches; next 1.1; 1.1 date 2001.08.08.19.15.23; author rse; state Exp; branches; next ; desc @@ 1.12 log @Bumped year in copyright messages for year 2005. @ text @/* ** OSSP xds - Extensible Data Serialization ** Copyright (c) 2001-2005 Ralf S. Engelschall ** Copyright (c) 2001-2005 The OSSP Project ** Copyright (c) 2001-2005 Cable & Wireless ** ** This file is part of OSSP xds, an extensible data serialization ** library which can be found at http://www.ossp.org/pkg/lib/xds/. ** ** Permission to use, copy, modify, and distribute this software for ** any purpose with or without fee is hereby granted, provided that ** the above copyright notice and this permission notice appear in all ** copies. ** ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ** IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ** USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ** SUCH DAMAGE. ** ** xds_p.h: internal library API */ #ifndef __XDS_P_H__ #define __XDS_P_H__ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "xds.h" #define XDS_INITIAL_BUFFER_CAPACITY 512 #define XDS_INITIAL_ENGINES_CAPACITY 32 typedef struct { char *name; xds_engine_t engine; void *context; } engine_map_t; struct xds_context { xds_mode_t mode; char *buffer; size_t buffer_len; size_t buffer_capacity; int we_own_buffer; engine_map_t *engines; size_t engines_len; size_t engines_capacity; }; #endif /* __XDS_P_H__ */ @ 1.11 log @Bumped year in copyright messages for year 2004. @ text @d3 3 a5 3 ** Copyright (c) 2001-2004 Ralf S. Engelschall ** Copyright (c) 2001-2004 The OSSP Project ** Copyright (c) 2001-2004 Cable & Wireless @ 1.10 log @upgrade to standard OSSP copyright and bump year to 2003 @ text @d3 3 a5 3 ** Copyright (c) 2001-2003 Ralf S. Engelschall ** Copyright (c) 2001-2003 The OSSP Project ** Copyright (c) 2001-2003 Cable & Wireless Germany @ 1.9 log @update texts @ text @d3 3 a5 2 ** Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/) ** Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/) @ 1.8 log @bump copyright year @ text @d2 1 a2 1 ** XDS - OSSP Extensible Data Serialization Library d6 2 a7 2 ** This file is part of OSSP XDS, an extensible data serialization ** library which can be found at http://www.ossp.org/pkg/xds/. @ 1.7 log @Removed trailing whitespace. @ text @d3 2 a4 2 ** Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) ** Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) @ 1.6 log @Hhmm... who has introduced ossp.com?! Our project's domain is ossp.org, of course. @ text @a59 1 @ 1.5 log @First cut for GNU Libtool 1.4 & GNU Shtool 1.5 support. This needs a little bit more cleanup which will follow later, but I want to flush my pending work now in order to continue with other projects. The XDS build environment now is in sync with the usual style for OSSP libraries. @ text @d7 1 a7 1 ** library which can be found at http://www.ossp.com/pkg/xds/. @ 1.4 log @Use the license consistently. @ text @d33 4 @ 1.3 log @Do not export internal functions, too. @ text @d27 1 a27 1 ** xds_p.h: internal C API @ 1.2 log @Mmanual style cleanups to header files. @ text @a54 6 int xds_find_engine(const engine_map_t *engines, size_t last, const char *name, size_t *pos); int xds_set_capacity(void **array, size_t *array_capacity, size_t new_capacity, size_t elem_size, size_t initial_capacity); @ 1.1 log @First cut of the ruthless style adjustments to OSSP XDS: o adjust source tree to follow OSSP source tree style by heavily combining sources into smaller sets (needs more work when still missing parts are added later) o automatic re-indentation of sources with GNU indent (still needs manual review and adjustments; will follow) These two heavy steps were mostly done automatically with the help of two helper scripts written in Perl. So expect more manual adjustments to follow... @ text @d1 28 a28 25 /* * XDS - OSSP Extensible Data Serialization Library Copyright (c) 2001 The * OSSP Project (http://www.ossp.org/) Copyright (c) 2001 Cable & Wireless * Deutschland (http://www.cw.com/de/) * * This file is part of OSSP XDS, an extensible data serialization library * which can be found at http://www.ossp.com/pkg/xds/. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO * EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * internal.h: internal C API */ d30 2 a31 2 #ifndef __INTERNAL_H__ #define __INTERNAL_H__ d35 1 a35 1 #define XDS_INITIAL_BUFFER_CAPACITY 512 a45 1 a49 1 d55 3 a57 3 int xds_find_engine(const engine_map_t * engines, size_t last, const char *name, size_t * pos); int xds_set_capacity(void **array, size_t * array_capacity, d61 2 a62 1 #endif /* !defined(__INTERNAL_H__) */ @