Commit 75b96824 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

very serious cleanup, isolating unportable code and as much as possible

* catalog.c include/libxml/catalog.h: very serious cleanup,
  isolating unportable code and as much as possible the accesses
  to the global shared catalog. May need more testing !
Daniel
parent 78d12097
Thu Oct 11 20:58:15 CEST 2001 Daniel Veillard <daniel@veillard.com>
* catalog.c include/libxml/catalog.h: very serious cleanup,
isolating unportable code and as much as possible the accesses
to the global shared catalog. May need more testing !
Thu Oct 11 11:10:31 CEST 2001 Daniel Veillard <daniel@veillard.com>
* include/libxml/debugXML.h debugXML.c tree.c: integrating
......
This diff is collapsed.
......@@ -54,9 +54,39 @@ typedef enum {
XML_CATA_ALLOW_ALL = 3
} xmlCatalogAllow;
typedef struct _xmlCatalog xmlCatalog;
typedef xmlCatalog *xmlCatalogPtr;
/*
* Operations on a given catalog
*/
xmlCatalogPtr xmlLoadACatalog (const char *filename);
xmlCatalogPtr xmlLoadSGMLSuperCatalog (const char *filename);
int xmlConvertSGMLCatalog (xmlCatalogPtr catal);
int xmlACatalogAdd (xmlCatalogPtr catal,
const xmlChar *type,
const xmlChar *orig,
const xmlChar *replace);
int xmlACatalogRemove (xmlCatalogPtr catal,
const xmlChar *value);
xmlChar * xmlACatalogResolve (xmlCatalogPtr catal,
const xmlChar *pubID,
const xmlChar *sysID);
xmlChar * xmlACatalogResolveSystem(xmlCatalogPtr catal,
const xmlChar *sysID);
xmlChar * xmlACatalogResolvePublic(xmlCatalogPtr catal,
const xmlChar *pubID);
xmlChar * xmlACatalogResolveURI (xmlCatalogPtr catal,
const xmlChar *URI);
void xmlACatalogDump (xmlCatalogPtr catal,
FILE *out);
void xmlFreeCatalog (xmlCatalogPtr catal);
/*
* Global operations
*/
void xmlInitializeCatalog (void);
int xmlLoadCatalog (const char *filename);
int xmlLoadSGMLSuperCatalog (const char *filename);
void xmlLoadCatalogs (const char *paths);
void xmlCatalogCleanup (void);
void xmlCatalogDump (FILE *out);
......@@ -92,6 +122,7 @@ xmlCatalogPrefer xmlCatalogSetDefaultPrefer(xmlCatalogPrefer prefer);
void xmlCatalogSetDefaults (xmlCatalogAllow allow);
xmlCatalogAllow xmlCatalogGetDefaults (void);
/* DEPRECATED interfaces */
const xmlChar * xmlCatalogGetSystem (const xmlChar *sysID);
const xmlChar * xmlCatalogGetPublic (const xmlChar *pubID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment