diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-21 13:17:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-21 13:17:16 +0000 |
commit | 1732154b8c021e7ee0e34c28cf3b1a843454727a (patch) | |
tree | 3cb7fd79f409467c07d831ec055ebcdc8bfe61a2 /src/include/gnunet_mysql_lib.h | |
parent | 8919055de77f692ce3f0c1b9781fc9011de9cb6f (diff) | |
download | gnunet-1732154b8c021e7ee0e34c28cf3b1a843454727a.tar.gz gnunet-1732154b8c021e7ee0e34c28cf3b1a843454727a.zip |
towards fixing mysql plugin
Diffstat (limited to 'src/include/gnunet_mysql_lib.h')
-rw-r--r-- | src/include/gnunet_mysql_lib.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/include/gnunet_mysql_lib.h b/src/include/gnunet_mysql_lib.h index dfa173cf9..fc0bfdfac 100644 --- a/src/include/gnunet_mysql_lib.h +++ b/src/include/gnunet_mysql_lib.h | |||
@@ -104,13 +104,11 @@ GNUNET_MYSQL_statements_invalidate (struct GNUNET_MYSQL_Context *mc); | |||
104 | * be used, and if, with caution! On failures during the interaction with | 104 | * be used, and if, with caution! On failures during the interaction with |
105 | * the handle, you must call 'GNUNET_MYSQL_statements_invalidate'! | 105 | * the handle, you must call 'GNUNET_MYSQL_statements_invalidate'! |
106 | * | 106 | * |
107 | * @param mc mysql context | ||
108 | * @param sh prepared statement to introspect | 107 | * @param sh prepared statement to introspect |
109 | * @return MySQL statement handle, NULL on error | 108 | * @return MySQL statement handle, NULL on error |
110 | */ | 109 | */ |
111 | MYSQL_STMT * | 110 | MYSQL_STMT * |
112 | GNUNET_MYSQL_statement_get_stmt (struct GNUNET_MYSQL_Context *mc, | 111 | GNUNET_MYSQL_statement_get_stmt (struct GNUNET_MYSQL_StatementHandle *sh); |
113 | struct GNUNET_MYSQL_StatementHandle *sh); | ||
114 | 112 | ||
115 | 113 | ||
116 | /** | 114 | /** |
@@ -142,7 +140,6 @@ GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc, | |||
142 | /** | 140 | /** |
143 | * Run a prepared SELECT statement. | 141 | * Run a prepared SELECT statement. |
144 | * | 142 | * |
145 | * @param mc mysql context | ||
146 | * @param sh handle to SELECT statment | 143 | * @param sh handle to SELECT statment |
147 | * @param result_size number of elements in results array | 144 | * @param result_size number of elements in results array |
148 | * @param results pointer to already initialized MYSQL_BIND | 145 | * @param results pointer to already initialized MYSQL_BIND |
@@ -156,8 +153,7 @@ GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc, | |||
156 | * the number of successfully affected (or queried) rows | 153 | * the number of successfully affected (or queried) rows |
157 | */ | 154 | */ |
158 | int | 155 | int |
159 | GNUNET_MYSQL_statement_run_prepared_select (struct GNUNET_MYSQL_Context *mc, | 156 | GNUNET_MYSQL_statement_run_prepared_select (struct GNUNET_MYSQL_StatementHandle *sh, |
160 | struct GNUNET_MYSQL_StatementHandle *sh, | ||
161 | unsigned int result_size, MYSQL_BIND * results, | 157 | unsigned int result_size, MYSQL_BIND * results, |
162 | GNUNET_MYSQL_DataProcessor processor, | 158 | GNUNET_MYSQL_DataProcessor processor, |
163 | void *processor_cls, ...); | 159 | void *processor_cls, ...); |
@@ -166,7 +162,6 @@ GNUNET_MYSQL_statement_run_prepared_select (struct GNUNET_MYSQL_Context *mc, | |||
166 | /** | 162 | /** |
167 | * Run a prepared SELECT statement. | 163 | * Run a prepared SELECT statement. |
168 | * | 164 | * |
169 | * @param mc mysql context | ||
170 | * @param s statement to run | 165 | * @param s statement to run |
171 | * @param result_size number of elements in results array | 166 | * @param result_size number of elements in results array |
172 | * @param results pointer to already initialized MYSQL_BIND | 167 | * @param results pointer to already initialized MYSQL_BIND |
@@ -180,8 +175,7 @@ GNUNET_MYSQL_statement_run_prepared_select (struct GNUNET_MYSQL_Context *mc, | |||
180 | * the number of successfully affected (or queried) rows | 175 | * the number of successfully affected (or queried) rows |
181 | */ | 176 | */ |
182 | int | 177 | int |
183 | GNUNET_MYSQL_statement_run_prepared_select_va (struct GNUNET_MYSQL_Context *mc, | 178 | GNUNET_MYSQL_statement_run_prepared_select_va (struct GNUNET_MYSQL_StatementHandle *s, |
184 | struct GNUNET_MYSQL_StatementHandle *s, | ||
185 | unsigned int result_size, | 179 | unsigned int result_size, |
186 | MYSQL_BIND * results, | 180 | MYSQL_BIND * results, |
187 | GNUNET_MYSQL_DataProcessor processor, | 181 | GNUNET_MYSQL_DataProcessor processor, |
@@ -192,7 +186,6 @@ GNUNET_MYSQL_statement_run_prepared_select_va (struct GNUNET_MYSQL_Context *mc, | |||
192 | /** | 186 | /** |
193 | * Run a prepared statement that does NOT produce results. | 187 | * Run a prepared statement that does NOT produce results. |
194 | * | 188 | * |
195 | * @param mc mysql context | ||
196 | * @param sh handle to statment | 189 | * @param sh handle to statment |
197 | * @param insert_id NULL or address where to store the row ID of whatever | 190 | * @param insert_id NULL or address where to store the row ID of whatever |
198 | * was inserted (only for INSERT statements!) | 191 | * was inserted (only for INSERT statements!) |
@@ -203,8 +196,7 @@ GNUNET_MYSQL_statement_run_prepared_select_va (struct GNUNET_MYSQL_Context *mc, | |||
203 | * the number of successfully affected rows | 196 | * the number of successfully affected rows |
204 | */ | 197 | */ |
205 | int | 198 | int |
206 | GNUNET_MYSQL_statement_run_prepared (struct GNUNET_MYSQL_Context *mc, | 199 | GNUNET_MYSQL_statement_run_prepared (struct GNUNET_MYSQL_StatementHandle *sh, |
207 | struct GNUNET_MYSQL_StatementHandle *sh, | ||
208 | unsigned long long *insert_id, ...); | 200 | unsigned long long *insert_id, ...); |
209 | 201 | ||
210 | 202 | ||