aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/xml.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-03-03 17:29:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-03-03 17:29:53 +0000
commit3c93c3ab9535e88e47d1f357e5a77a0905dfcc01 (patch)
tree67de6ba356d5a85404794d8b60456a12faecfea1 /src/include/utils/xml.h
parentb4631ca0bb91fb9a3681e9f2460392dbe57d6112 (diff)
downloadpostgresql-3c93c3ab9535e88e47d1f357e5a77a0905dfcc01.tar.gz
postgresql-3c93c3ab9535e88e47d1f357e5a77a0905dfcc01.zip
Export xml.c's libxml-error-handling support so that contrib/xml2 can use it
too, instead of duplicating the functionality (badly). I renamed xml_init to pg_xml_init, because the former seemed just a bit too generic to be safe as a global symbol. I considered likewise renaming xml_ereport to pg_xml_ereport, but felt that the reference to ereport probably made it sufficiently PG-centric already.
Diffstat (limited to 'src/include/utils/xml.h')
-rw-r--r--src/include/utils/xml.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/xml.h b/src/include/utils/xml.h
index b7d631c031b..88f2fd99ad6 100644
--- a/src/include/utils/xml.h
+++ b/src/include/utils/xml.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/xml.h,v 1.28 2009/06/11 14:49:13 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/xml.h,v 1.28.2.1 2010/03/03 17:29:53 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -63,6 +63,8 @@ typedef enum
XML_STANDALONE_OMITTED
} XmlStandaloneType;
+extern void pg_xml_init(void);
+extern void xml_ereport(int level, int sqlcode, const char *msg);
extern xmltype *xmlconcat(List *args);
extern xmltype *xmlelement(XmlExprState *xmlExpr, ExprContext *econtext);
extern xmltype *xmlparse(text *data, XmlOptionType xmloption, bool preserve_whitespace);