diff options
Diffstat (limited to 'src/sq/sq_result_helper.c')
-rw-r--r-- | src/sq/sq_result_helper.c | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/src/sq/sq_result_helper.c b/src/sq/sq_result_helper.c index 361fea7bf..36ce53317 100644 --- a/src/sq/sq_result_helper.c +++ b/src/sq/sq_result_helper.c | |||
@@ -24,6 +24,30 @@ | |||
24 | 24 | ||
25 | 25 | ||
26 | /** | 26 | /** |
27 | * Extract fixed-sized binary data from a Postgres database @a result at row @a row. | ||
28 | * | ||
29 | * @param cls closure | ||
30 | * @param result where to extract data from | ||
31 | * @param row row to extract data from | ||
32 | * @param column column to extract data from | ||
33 | * @param[in,out] dst_size where to store size of result, may be NULL | ||
34 | * @param[out] dst where to store the result | ||
35 | * @return | ||
36 | * #GNUNET_YES if all results could be extracted | ||
37 | * #GNUNET_SYSERR if a result was invalid (non-existing field or NULL) | ||
38 | */ | ||
39 | static int | ||
40 | extract_fixed_blob (void *cls, | ||
41 | sqlite3_stmt *result, | ||
42 | int row, | ||
43 | unsigned int column, | ||
44 | size_t *dst_size, | ||
45 | void *dst) | ||
46 | { | ||
47 | } | ||
48 | |||
49 | |||
50 | /** | ||
27 | * Variable-size result expected. | 51 | * Variable-size result expected. |
28 | * | 52 | * |
29 | * @param[out] dst where to store the result, allocated | 53 | * @param[out] dst where to store the result, allocated |
@@ -52,20 +76,6 @@ GNUNET_SQ_result_spec_fixed_size (void *dst, | |||
52 | 76 | ||
53 | 77 | ||
54 | /** | 78 | /** |
55 | * Variable-size result expected. | ||
56 | * | ||
57 | * @param[out] dst where to store the result, allocated | ||
58 | * @param[out] sptr where to store the size of @a dst | ||
59 | * @return array entry for the result specification to use | ||
60 | */ | ||
61 | struct GNUNET_SQ_ResultSpec | ||
62 | GNUNET_SQ_result_spec_variable_size (void **dst, | ||
63 | size_t *sptr) | ||
64 | { | ||
65 | } | ||
66 | |||
67 | |||
68 | /** | ||
69 | * 0-terminated string expected. | 79 | * 0-terminated string expected. |
70 | * | 80 | * |
71 | * @param[out] dst where to store the result, allocated | 81 | * @param[out] dst where to store the result, allocated |