diff options
Diffstat (limited to 'database/postgresql/pgsql-common.h')
| -rw-r--r-- | database/postgresql/pgsql-common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/database/postgresql/pgsql-common.h b/database/postgresql/pgsql-common.h index a1bbed0..cf5131a 100644 --- a/database/postgresql/pgsql-common.h +++ b/database/postgresql/pgsql-common.h @@ -33,6 +33,11 @@ #define _PGSQL_ERROR_H #include <stdarg.h> + +#ifdef HAVE_LIBXML2 +#include <libxml/tree.h> +#endif + #include <eurephia_context.h> #include "prepared-sql.h" @@ -43,5 +48,11 @@ void __ePGerrorMessage(eurephiaCTX *ctx, PGresult *dbr, int logdst, int loglvl, ePG_prepID prepid, const char *errfile, const long errline, const char *fmt, ...); +#ifdef HAVE_LIBXML2 +#define ePGerrorMessageXML(ctx, dbr, logdst, prepid) __ePGerrorMessageXML(ctx, dbr, logdst, prepid, __FILE__, __LINE__) +xmlNode * __ePGerrorMessageXML(eurephiaCTX *ctx, PGresult *dbr, int logdst, ePG_prepID prepid, + const char *errfile, const long errline); + +#endif #endif |
