diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-03-03 17:29:53 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-03-03 17:29:53 +0000 |
commit | 3c93c3ab9535e88e47d1f357e5a77a0905dfcc01 (patch) | |
tree | 67de6ba356d5a85404794d8b60456a12faecfea1 /src/include/utils/xml.h | |
parent | b4631ca0bb91fb9a3681e9f2460392dbe57d6112 (diff) | |
download | postgresql-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.h | 4 |
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); |