aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_preflight.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/pg_preflight.c')
-rw-r--r--src/exchangedb/pg_preflight.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/exchangedb/pg_preflight.c b/src/exchangedb/pg_preflight.c
index 4925db512..1961265d1 100644
--- a/src/exchangedb/pg_preflight.c
+++ b/src/exchangedb/pg_preflight.c
@@ -26,6 +26,18 @@
#include "pg_helper.h"
+/**
+ * Connect to the database if the connection does not exist yet.
+ *
+ * @param pg the plugin-specific state
+ * @param skip_prepare true if we should skip prepared statement setup
+ * @return #GNUNET_OK on success
+ */
+enum GNUNET_GenericReturnValue
+TEH_PG_internal_setup (struct PostgresClosure *pg,
+ bool skip_prepare);
+
+
enum GNUNET_GenericReturnValue
TEH_PG_preflight (void *cls)
{
@@ -38,9 +50,8 @@ TEH_PG_preflight (void *cls)
if (! pg->init)
{
if (GNUNET_OK !=
-
- internal_setup (pg,
- false))
+ TEH_PG_internal_setup (pg,
+ false))
return GNUNET_SYSERR;
}
if (NULL == pg->transaction_name)