aboutsummaryrefslogtreecommitdiff
path: root/src/sq/sq_result_helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-27 02:08:21 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-27 02:08:21 +0100
commit8b3286e953a80cf069271957ec817485ebe5b14e (patch)
treef8d013d64ad9bb0531e087234894f040f0819f70 /src/sq/sq_result_helper.c
parent34cbc615577b80ad57c706c0001123f3d5cb752d (diff)
implement sq_query_helper.c
Diffstat (limited to 'src/sq/sq_result_helper.c')
-rw-r--r--src/sq/sq_result_helper.c38
1 files changed, 24 insertions, 14 deletions
diff --git a/src/sq/sq_result_helper.c b/src/sq/sq_result_helper.c
index 361fea7bf5..36ce533174 100644
--- a/src/sq/sq_result_helper.c
+++ b/src/sq/sq_result_helper.c
@@ -24,6 +24,30 @@
/**
+ * Extract fixed-sized binary data from a Postgres database @a result at row @a row.
+ *
+ * @param cls closure
+ * @param result where to extract data from
+ * @param row row to extract data from
+ * @param column column to extract data from
+ * @param[in,out] dst_size where to store size of result, may be NULL
+ * @param[out] dst where to store the result
+ * @return
+ * #GNUNET_YES if all results could be extracted
+ * #GNUNET_SYSERR if a result was invalid (non-existing field or NULL)
+ */
+static int
+extract_fixed_blob (void *cls,
+ sqlite3_stmt *result,
+ int row,
+ unsigned int column,
+ size_t *dst_size,
+ void *dst)
+{
+}
+
+
+/**
* Variable-size result expected.
*
* @param[out] dst where to store the result, allocated
@@ -52,20 +76,6 @@ GNUNET_SQ_result_spec_fixed_size (void *dst,
/**
- * Variable-size result expected.
- *
- * @param[out] dst where to store the result, allocated
- * @param[out] sptr where to store the size of @a dst
- * @return array entry for the result specification to use
- */
-struct GNUNET_SQ_ResultSpec
-GNUNET_SQ_result_spec_variable_size (void **dst,
- size_t *sptr)
-{
-}
-
-
-/**
* 0-terminated string expected.
*
* @param[out] dst where to store the result, allocated