aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-05 11:58:45 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-05 11:58:45 +0100
commit2266d461461384be87dd4385e1fc2043c61bc99e (patch)
tree6ee3826fc7189fef2192f3dcc5bcb8d444a1fd8d /src/include
parentac749fb8ab73ff86366099226a76f1c7d2980394 (diff)
downloadgnunet-2266d461461384be87dd4385e1fc2043c61bc99e.tar.gz
gnunet-2266d461461384be87dd4385e1fc2043c61bc99e.zip
add bool type to libgnunetpq
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_pq_lib.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h
index 6a374f7e2..05d373f88 100644
--- a/src/include/gnunet_pq_lib.h
+++ b/src/include/gnunet_pq_lib.h
@@ -133,6 +133,16 @@ GNUNET_PQ_query_param_string (const char *ptr);
133 133
134 134
135/** 135/**
136 * Pass a boolean into a query.
137 *
138 * @param b boolean bit to pass
139 * @return query parameter to use
140 */
141struct GNUNET_PQ_QueryParam
142GNUNET_PQ_query_param_bool (bool b);
143
144
145/**
136 * Generate fixed-size query parameter with size determined 146 * Generate fixed-size query parameter with size determined
137 * by variable type. 147 * by variable type.
138 * 148 *
@@ -414,6 +424,18 @@ GNUNET_PQ_result_spec_string (const char *name,
414 424
415 425
416/** 426/**
427 * boolean expected.
428 *
429 * @param name name of the field in the table
430 * @param[out] dst where to store the result
431 * @return array entry for the result specification to use
432 */
433struct GNUNET_PQ_ResultSpec
434GNUNET_PQ_result_spec_bool (const char *name,
435 bool *dst);
436
437
438/**
417 * RSA public key expected. 439 * RSA public key expected.
418 * 440 *
419 * @param name name of the field in the table 441 * @param name name of the field in the table