diff options
Diffstat (limited to 'dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h')
-rw-r--r-- | dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h b/dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h new file mode 100644 index 000000000000..188e73ba3657 --- /dev/null +++ b/dev-haskell/hdbc-postgresql/files/hdbc-postgresql-helper.h @@ -0,0 +1,16 @@ +#include <libpq-fe.h> + +typedef struct TAG_finalizeonce { + void *encapobj; + int refcount; + int isfinalized; + struct TAG_finalizeonce *parent; +} finalizeonce; + +extern finalizeonce *wrapobjpg(void *obj, finalizeonce *parentobj); + +extern void PQfinish_app(finalizeonce *conn); +extern void PQfinish_finalizer(finalizeonce *conn); + +extern void PQclear_app(finalizeonce *res); +extern void PQclear_finalizer(finalizeonce *res); |