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:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-03-03 17:29:45 +0000
commit8bf14182cfeeae2ad5e5feb792701250e1218638 (patch)
tree19c6a75b5723ed3db9e9cc5ae05042b655b77905 /src/include/utils/xml.h
parent3a8497892c69352e48f5f26e2a2299ee5a7934a5 (diff)
downloadpostgresql-8bf14182cfeeae2ad5e5feb792701250e1218638.tar.gz
postgresql-8bf14182cfeeae2ad5e5feb792701250e1218638.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 a5dc673ad0e..7543cbb6ee4 100644
--- a/src/include/utils/xml.h
+++ b/src/include/utils/xml.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/xml.h,v 1.30 2010/01/02 16:58:10 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/xml.h,v 1.31 2010/03/03 17:29:45 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);