diff -r f7544e220a0f -r 3ad0b65ec838 src/server/plugins/postgresql/pgtest.h --- a/src/server/plugins/postgresql/pgtest.h Mon Apr 25 21:40:26 2022 +0200 +++ b/src/server/plugins/postgresql/pgtest.h Mon Apr 25 22:35:30 2022 +0200 @@ -15,11 +15,37 @@ #define PGTEST_H #include +#include +#include #ifdef __cplusplus extern "C" { #endif +typedef struct TestMultistatus { + UcxMempool *mp; + xmlDoc *doc; + UcxMap *responses; +} TestMultistatus; + +typedef struct TestResponse { + char *href; + UcxMap *properties; +} TestResponse; + +typedef struct TestProperty { + char *prefix; + char *namespace; + char *name; + char *lang; + char *value; + xmlNode *node; + int status; +} TestProperty; + +TestMultistatus* test_parse_multistatus(const char *space, size_t size); +void test_multistatus_destroy(TestMultistatus *ms); + UCX_TEST(test_pg_conn); UCX_TEST(test_pg_vfs_open);