aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dhtlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/dhtlog.h')
-rw-r--r--src/dht/dhtlog.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/dht/dhtlog.h b/src/dht/dhtlog.h
index c10e7c153..b2ba1c96f 100644
--- a/src/dht/dhtlog.h
+++ b/src/dht/dhtlog.h
@@ -30,7 +30,6 @@
30#define GNUNET_DHTLOG_SERVICE_H 30#define GNUNET_DHTLOG_SERVICE_H
31 31
32#include "gnunet_util_lib.h" 32#include "gnunet_util_lib.h"
33#include <mysql/mysql.h>
34 33
35#ifdef __cplusplus 34#ifdef __cplusplus
36extern "C" 35extern "C"
@@ -157,6 +156,13 @@ struct GNUNET_DHTLOG_Handle
157 156
158}; 157};
159 158
159struct GNUNET_DHTLOG_Plugin
160{
161 const struct GNUNET_CONFIGURATION_Handle *cfg;
162
163 struct GNUNET_DHTLOG_Handle *dhtlog_api;
164};
165
160/** 166/**
161 * Connect to mysql server using the DHT log plugin. 167 * Connect to mysql server using the DHT log plugin.
162 * 168 *
@@ -171,18 +177,6 @@ GNUNET_DHTLOG_connect (const struct GNUNET_CONFIGURATION_Handle *c);
171void 177void
172GNUNET_DHTLOG_disconnect (struct GNUNET_DHTLOG_Handle *api); 178GNUNET_DHTLOG_disconnect (struct GNUNET_DHTLOG_Handle *api);
173 179
174/**
175 * Type of a callback that will be called for each
176 * data set returned from MySQL.
177 *
178 * @param cls user-defined argument
179 * @param num_values number of elements in values
180 * @param values values returned by MySQL
181 * @return GNUNET_OK to continue iterating, GNUNET_SYSERR to abort
182 */
183typedef int (*GNUNET_MysqlDataProcessor) (void *cls,
184 unsigned int num_values,
185 MYSQL_BIND * values);
186 180
187#if 0 /* keep Emacsens' auto-indent happy */ 181#if 0 /* keep Emacsens' auto-indent happy */
188{ 182{