head 1.5; access; symbols SNAPSHOT_0_1_4:1.5 SNAPSHOT_0_1_3:1.4 SNAPSHOT_0_1_2:1.4 start:1.1.1.1 isi:1.1.1; locks; strict; comment @# @; 1.5 date 2005.02.14.17.26.26; author pb; state Exp; branches; next 1.4; 1.4 date 2003.02.19.17.42.37; author cworth; state Exp; branches; next 1.3; 1.3 date 2003.02.03.18.55.32; author cworth; state Exp; branches; next 1.2; 1.2 date 2002.11.02.04.11.37; author cworth; state Exp; branches; next 1.1; 1.1 date 2002.10.23.21.19.43; author cworth; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.10.23.21.19.43; author cworth; state Exp; branches; next ; desc @@ 1.5 log @2005-02-14 Phil Blundell * configure.in: Add "--with-expat" flag. (LIBSVG_PARSER_BACKEND, LIBSVG_REQUIRES): Define appropriately. (EXPAT): New automake conditional. * libsvg.pc.in (Requires): Use value from LIBSVG_REQUIRES. * src/svgint.h (svg_xml_parser_context_t, svg_hash_table_t, _svg_xml_hash_add_entry, _svg_xml_hash_lookup, _svg_xml_hash_create, _svg_xml_hash_free, _svg_xml_strdup): Declare. (struct svg, struct svg_parser): Use svg_hash_table_t and svg_xml_parser_context_t. * src/svg.c (_svg_init, _svg_deinit, _svg_store_element_by_id, _svg_fetch_element_by_id): Replace direct calls to xmlHash functions with _svg_xml_hash equivalents. * src/svg_element.c (_svg_element_apply_attributes): Use _svg_xml_strdup in place of xmlMemStrdup. (_svg_element_init_copy): Likewise. * src/svg_parser.c (SVG_PARSER_SAX_HANDLER, _svg_parser_init, _svg_parser_deinit, _svg_parser_begin, _svg_parser_parse_chunk, _svg_parser_end, _svg_parser_sax_get_entity, _svg_parser_sax_entity_decl, _svg_parser_sax_warning, _svg_parser_sax_error, _svg_parser_sax_fatal_error): Move to new file svg_parser_libxml.c. (_svg_parser_sax_start_element, _svg_parser_sax_end_element, _svg_parser_sax_characters): Make linkage global. Move declarations to svgint.h. * src/svg_parser_expat.c: New file. * src/svg_hash.c, src/svg_hash.h: New files. Code supplied by Chris Osgood. * src/Makefile.am (LIBSVG_EXTRA_SOURCES): Select expat or libxml parser backend as appropriate. (libsvg_la_SOURCES): Include LIBSVG_EXTRA_SOURCES. @ text @prefix=@@prefix@@ exec_prefix=@@exec_prefix@@ libdir=@@libdir@@ includedir=@@includedir@@ Name: libsvg Description: library for parsing SVG content Version: @@VERSION@@ Requires: @@LIBSVG_REQUIRES@@ Libs: -L${libdir} -lsvg -lpng -ljpeg -lz Cflags: -I${includedir} @ 1.4 log @Added support for gzipped files (.svgz) @ text @d9 1 a9 1 Requires: libxml-2.0 d11 1 a11 1 Cflags: -I${includedir}@ 1.3 log @Added support for JPEG images @ text @d10 1 a10 1 Libs: -L${libdir} -lsvg -lpng -ljpeg @ 1.2 log @Added basic (PNG) image parsing @ text @d10 1 a10 1 Libs: -L${libdir} -lsvg -lpng @ 1.1 log @Initial revision @ text @d9 2 a10 2 Requires: libxml-2.0 Libs: -L${libdir} -lsvg @ 1.1.1.1 log @Initial commit of libsvg. @ text @@