From e0f650cbf41490b3f58476f0696783058798c63d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 3 Apr 2016 19:35:52 +0000 Subject: add function for string parameters --- src/include/gnunet_pq_lib.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include/gnunet_pq_lib.h') diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index 39c288f5a..8483b72cf 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h @@ -102,6 +102,16 @@ GNUNET_PQ_query_param_fixed_size (const void *ptr, size_t ptr_size); + +/** + * Generate query parameter for a string. + * + * @param ptr pointer to the string query parameter to pass + */ +struct GNUNET_PQ_QueryParam +GNUNET_PQ_query_param_string (const char *ptr); + + /** * Generate fixed-size query parameter with size determined * by variable type. -- cgit v1.2.3