Commit b36d4fe5 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Added some missing files, Daniel

parent 1aadc447
<HTML
><HEAD
><TITLE
>globals</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="Gnome XML Library Reference Manual"
HREF="book1.html"><LINK
REL="UP"
TITLE="Libxml Library Reference"
HREF="libxml-lib.html"><LINK
REL="PREVIOUS"
TITLE="threads"
HREF="libxml-threads.html"><LINK
REL="NEXT"
TITLE="DOCBparser"
HREF="libxml-docbparser.html"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
BGCOLOR="#000000"
CELLPADDING="1"
CELLSPACING="0"
><TR
><TH
COLSPAN="4"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="5"
>Gnome XML Library Reference Manual</FONT
></TH
></TR
><TR
><TD
WIDTH="25%"
BGCOLOR="#C00000"
ALIGN="left"
><A
HREF="libxml-threads.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>&#60;&#60;&#60; Previous Page</B
></FONT
></A
></TD
><TD
WIDTH="25%"
BGCOLOR="#0000C0"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
><A
HREF="book1.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Home</B
></FONT
></A
></B
></FONT
></TD
><TD
WIDTH="25%"
BGCOLOR="#00C000"
ALIGN="center"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
><A
HREF="libxml-lib.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Up</B
></FONT
></A
></B
></FONT
></TD
><TD
WIDTH="25%"
BGCOLOR="#C00000"
ALIGN="right"
><A
HREF="libxml-docbparser.html"
><FONT
COLOR="#FFFFFF"
SIZE="3"
><B
>Next Page &#62;&#62;&#62;</B
></FONT
></A
></TD
></TR
></TABLE
></DIV
><H1
><A
NAME="LIBXML-GLOBALS"
>globals</A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN20130"
></A
><H2
>Name</H2
>globals&nbsp;--&nbsp;</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN20133"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>&#13;
struct <A
HREF="libxml-globals.html#XMLGLOBALSTATE"
>xmlGlobalState</A
>;
typedef <A
HREF="libxml-globals.html#XMLGLOBALSTATEPTR"
>xmlGlobalStatePtr</A
>;
void <A
HREF="libxml-globals.html#XMLINITIALIZEGLOBALSTATE"
>xmlInitializeGlobalState</A
> (<A
HREF="libxml-globals.html#XMLGLOBALSTATEPTR"
>xmlGlobalStatePtr</A
> gs);
#define <A
HREF="libxml-globals.html#XMLMALLOC"
>xmlMalloc</A
> (size)
#define <A
HREF="libxml-globals.html#XMLREALLOC"
>xmlRealloc</A
> (ptr, size)
#define <A
HREF="libxml-globals.html#XMLFREE"
>xmlFree</A
>
#define <A
HREF="libxml-globals.html#XMLMEMSTRDUP"
>xmlMemStrdup</A
> (str)
#define <A
HREF="libxml-globals.html#DOCBDEFAULTSAXHANDLER"
>docbDefaultSAXHandler</A
>
#define <A
HREF="libxml-globals.html#HTMLDEFAULTSAXHANDLER"
>htmlDefaultSAXHandler</A
>
#define <A
HREF="libxml-globals.html#OLDXMLWDCOMPATIBILITY"
>oldXMLWDcompatibility</A
>
#define <A
HREF="libxml-globals.html#XMLBUFFERALLOCSCHEME"
>xmlBufferAllocScheme</A
>
#define <A
HREF="libxml-globals.html#XMLDEFAULTBUFFERSIZE"
>xmlDefaultBufferSize</A
>
#define <A
HREF="libxml-globals.html#XMLDEFAULTSAXHANDLER"
>xmlDefaultSAXHandler</A
>
#define <A
HREF="libxml-globals.html#XMLDEFAULTSAXLOCATOR"
>xmlDefaultSAXLocator</A
>
#define <A
HREF="libxml-globals.html#XMLDOVALIDITYCHECKINGDEFAULTVALUE"
>xmlDoValidityCheckingDefaultValue</A
>
#define <A
HREF="libxml-globals.html#XMLGENERICERROR"
>xmlGenericError</A
>
#define <A
HREF="libxml-globals.html#XMLGENERICERRORCONTEXT"
>xmlGenericErrorContext</A
>
#define <A
HREF="libxml-globals.html#XMLGETWARNINGSDEFAULTVALUE"
>xmlGetWarningsDefaultValue</A
>
#define <A
HREF="libxml-globals.html#XMLINDENTTREEOUTPUT"
>xmlIndentTreeOutput</A
>
#define <A
HREF="libxml-globals.html#XMLKEEPBLANKSDEFAULTVALUE"
>xmlKeepBlanksDefaultValue</A
>
#define <A
HREF="libxml-globals.html#XMLLINENUMBERSDEFAULTVALUE"
>xmlLineNumbersDefaultValue</A
>
#define <A
HREF="libxml-globals.html#XMLLOADEXTDTDDEFAULTVALUE"
>xmlLoadExtDtdDefaultValue</A
>
#define <A
HREF="libxml-globals.html#XMLPARSERDEBUGENTITIES"
>xmlParserDebugEntities</A
>
#define <A
HREF="libxml-globals.html#XMLPARSERVERSION"
>xmlParserVersion</A
>
#define <A
HREF="libxml-globals.html#XMLPEDANTICPARSERDEFAULTVALUE"
>xmlPedanticParserDefaultValue</A
>
#define <A
HREF="libxml-globals.html#XMLSAVENOEMPTYTAGS"
>xmlSaveNoEmptyTags</A
>
#define <A
HREF="libxml-parser.html#XMLSUBSTITUTEENTITIESDEFAULTVALUE"
>xmlSubstituteEntitiesDefaultValue</A
></PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN20164"
></A
><H2
>Description</H2
><P
></P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN20167"
></A
><H2
>Details</H2
><DIV
CLASS="REFSECT2"
><A
NAME="AEN20169"
></A
><H3
><A
NAME="XMLGLOBALSTATE"
></A
>struct xmlGlobalState</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>struct xmlGlobalState
{
const char *xmlParserVersion;
xmlSAXLocator xmlDefaultSAXLocator;
xmlSAXHandler xmlDefaultSAXHandler;
xmlSAXHandler docbDefaultSAXHandler;
xmlSAXHandler htmlDefaultSAXHandler;
xmlFreeFunc xmlFree;
xmlMallocFunc xmlMalloc;
xmlStrdupFunc xmlMemStrdup;
xmlReallocFunc xmlRealloc;
xmlGenericErrorFunc xmlGenericError;
void *xmlGenericErrorContext;
int oldXMLWDcompatibility;
xmlBufferAllocationScheme xmlBufferAllocScheme;
int xmlDefaultBufferSize;
int xmlSubstituteEntitiesDefaultValue;
int xmlDoValidityCheckingDefaultValue;
int xmlGetWarningsDefaultValue;
int xmlKeepBlanksDefaultValue;
int xmlLineNumbersDefaultValue;
int xmlLoadExtDtdDefaultValue;
int xmlParserDebugEntities;
int xmlPedanticParserDefaultValue;
int xmlSaveNoEmptyTags;
int xmlIndentTreeOutput;
};</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20174"
></A
><H3
><A
NAME="XMLGLOBALSTATEPTR"
></A
>xmlGlobalStatePtr</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>typedef xmlGlobalState *xmlGlobalStatePtr;</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20179"
></A
><H3
><A
NAME="XMLINITIALIZEGLOBALSTATE"
></A
>xmlInitializeGlobalState ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>void xmlInitializeGlobalState (<A
HREF="libxml-globals.html#XMLGLOBALSTATEPTR"
>xmlGlobalStatePtr</A
> gs);</PRE
></TD
></TR
></TABLE
><P
><A
HREF="libxml-globals.html#XMLINITIALIZEGLOBALSTATE"
>xmlInitializeGlobalState</A
>() initialize a global state with all the
default values of the library.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN20187"
></A
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>gs</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> a pointer to a newly allocated global state</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20196"
></A
><H3
><A
NAME="XMLMALLOC"
></A
>xmlMalloc()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>#define xmlMalloc(size)</PRE
></TD
></TR
></TABLE
><P
>Wrapper for the <GTKDOCLINK
HREF="MALLOC"
>malloc</GTKDOCLINK
>() function used in the XML library</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN20203"
></A
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>size</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20212"
></A
><H3
><A
NAME="XMLREALLOC"
></A
>xmlRealloc()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>#define xmlRealloc(ptr, size)</PRE
></TD
></TR
></TABLE
><P
>Wrapper for the <GTKDOCLINK
HREF="REALLOC"
>realloc</GTKDOCLINK
>() function used in the XML library</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN20219"
></A
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>ptr</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>size</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20232"
></A
><H3
><A
NAME="XMLFREE"
></A
>xmlFree</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>#define xmlFree</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20237"
></A
><H3
><A
NAME="XMLMEMSTRDUP"
></A
>xmlMemStrdup()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>#define xmlMemStrdup(str)</PRE
></TD
></TR
></TABLE
><P
>Wrapper for the <GTKDOCLINK
HREF="STRDUP"
>strdup</GTKDOCLINK
>() function, <A
HREF="libxml-parser.html#XMLSTRDUP"
>xmlStrdup</A
>() is usually preferred</P
><P
></P