aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_my_lib.h
diff options
context:
space:
mode:
authorChristophe Genevey Metat <genevey.christophe@gmail.com>2016-06-10 12:32:40 +0000
committerChristophe Genevey Metat <genevey.christophe@gmail.com>2016-06-10 12:32:40 +0000
commitf06baa8a2c99545167142049f19f4a7bedfe1764 (patch)
tree185d0bba4ddd80c6c186183bc1cdf8d85815023c /src/include/gnunet_my_lib.h
parent2f1634060e7d4aab5ff046ca50f1e21bae7471fb (diff)
downloadgnunet-f06baa8a2c99545167142049f19f4a7bedfe1764.tar.gz
gnunet-f06baa8a2c99545167142049f19f4a7bedfe1764.zip
finish to fix memory leak
Diffstat (limited to 'src/include/gnunet_my_lib.h')
-rw-r--r--src/include/gnunet_my_lib.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/include/gnunet_my_lib.h b/src/include/gnunet_my_lib.h
index ddccbd56e..e2ccee039 100644
--- a/src/include/gnunet_my_lib.h
+++ b/src/include/gnunet_my_lib.h
@@ -19,6 +19,7 @@
19*/ 19*/
20/** 20/**
21 * @author Christian Grothoff 21 * @author Christian Grothoff
22 * @author Christophe Genevey
22 * 23 *
23 * @file 24 * @file
24 * Helper library to access a MySQL database 25 * Helper library to access a MySQL database
@@ -123,7 +124,6 @@ struct GNUNET_MY_QueryParam
123#define GNUNET_MY_query_param_end { NULL, NULL, NULL, 0, NULL, 0 } 124#define GNUNET_MY_query_param_end { NULL, NULL, NULL, 0, NULL, 0 }
124 125
125 126
126
127/** 127/**
128 * Generate query parameter for a buffer @a ptr of 128 * Generate query parameter for a buffer @a ptr of
129 * @a ptr_size bytes.FG 129 * @a ptr_size bytes.FG
@@ -135,6 +135,7 @@ struct GNUNET_MY_QueryParam
135GNUNET_MY_query_param_fixed_size (const void *ptr, 135GNUNET_MY_query_param_fixed_size (const void *ptr,
136 size_t ptr_size); 136 size_t ptr_size);
137 137
138
138/** 139/**
139 * Run a prepared SELECT statement. 140 * Run a prepared SELECT statement.
140 * 141 *
@@ -304,7 +305,7 @@ GNUNET_MY_query_param_rsa_public_key (const struct GNUNET_CRYPTO_RsaPublicKey *x
304struct GNUNET_MY_QueryParam 305struct GNUNET_MY_QueryParam
305GNUNET_MY_query_param_rsa_signature (const struct GNUNET_CRYPTO_RsaSignature *x); 306GNUNET_MY_query_param_rsa_signature (const struct GNUNET_CRYPTO_RsaSignature *x);
306 307
307/**q 308/**
308 * Generate query parameter for an absolute time value. 309 * Generate query parameter for an absolute time value.
309 * The database must store a 64-bit integer. 310 * The database must store a 64-bit integer.
310 * 311 *
@@ -314,6 +315,7 @@ GNUNET_MY_query_param_rsa_signature (const struct GNUNET_CRYPTO_RsaSignature *x)
314struct GNUNET_MY_QueryParam 315struct GNUNET_MY_QueryParam
315GNUNET_MY_query_param_absolute_time (const struct GNUNET_TIME_Absolute *x); 316GNUNET_MY_query_param_absolute_time (const struct GNUNET_TIME_Absolute *x);
316 317
318
317/** 319/**
318 * Generate query parameter for an absolute time value. 320 * Generate query parameter for an absolute time value.
319 * The database must store a 64-bit integer. 321 * The database must store a 64-bit integer.
@@ -357,11 +359,6 @@ GNUNET_MY_query_param_uint64 (const uint64_t *x);
357#define GNUNET_MY_result_spec_auto_from_type(dst) GNUNET_MY_result_spec_fixed_size ((dst), sizeof (*(dst))) 359#define GNUNET_MY_result_spec_auto_from_type(dst) GNUNET_MY_result_spec_fixed_size ((dst), sizeof (*(dst)))
358 360
359 361
360/**
361 * FIXME.
362 *
363 */
364
365 /** 362 /**
366 * Variable-size result expected 363 * Variable-size result expected
367 * 364 *
@@ -468,6 +465,7 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh,
468 * #GNUNET_MY_exect_prepared(). 465 * #GNUNET_MY_exect_prepared().
469 * 466 *
470 * @param qp query specification to clean up 467 * @param qp query specification to clean up
468 * @param qbind mysql query
471 */ 469 */
472void 470void
473GNUNET_MY_cleanup_query (struct GNUNET_MY_QueryParam *qp, 471GNUNET_MY_cleanup_query (struct GNUNET_MY_QueryParam *qp,