aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-12-07 22:29:53 +0000
committerChristian Grothoff <christian@grothoff.org>2012-12-07 22:29:53 +0000
commit6304323162321afab21eadf5a0a9433dbeff4e50 (patch)
tree017b5268dfb2ef14b5ed5ef6391ad30cec088cf6 /src/datastore/plugin_datastore_template.c
parent9366ca95afdc80db816706bcaf6dc25237309d32 (diff)
downloadgnunet-6304323162321afab21eadf5a0a9433dbeff4e50.tar.gz
gnunet-6304323162321afab21eadf5a0a9433dbeff4e50.zip
-implementing heap-based datastore backend
Diffstat (limited to 'src/datastore/plugin_datastore_template.c')
-rw-r--r--src/datastore/plugin_datastore_template.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/datastore/plugin_datastore_template.c b/src/datastore/plugin_datastore_template.c
index 1e30abe18..2978de4fe 100644
--- a/src/datastore/plugin_datastore_template.c
+++ b/src/datastore/plugin_datastore_template.c
@@ -213,6 +213,21 @@ template_plugin_drop (void *cls)
213 213
214 214
215/** 215/**
216 * Get all of the keys in the datastore.
217 *
218 * @param cls closure
219 * @param proc function to call on each key
220 * @param proc_cls closure for proc
221 */
222static void
223template_get_keys (void *cls,
224 PluginKeyProcessor proc,
225 void *proc_cls)
226{
227}
228
229
230/**
216 * Entry point for the plugin. 231 * Entry point for the plugin.
217 * 232 *
218 * @param cls the "struct GNUNET_DATASTORE_PluginEnvironment*" 233 * @param cls the "struct GNUNET_DATASTORE_PluginEnvironment*"
@@ -237,6 +252,7 @@ libgnunet_plugin_datastore_template_init (void *cls)
237 api->get_expiration = &template_plugin_get_expiration; 252 api->get_expiration = &template_plugin_get_expiration;
238 api->get_zero_anonymity = &template_plugin_get_zero_anonymity; 253 api->get_zero_anonymity = &template_plugin_get_zero_anonymity;
239 api->drop = &template_plugin_drop; 254 api->drop = &template_plugin_drop;
255 api->get_keys = &template_get_keys;
240 GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, "template", 256 GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, "template",
241 _("Template database running\n")); 257 _("Template database running\n"));
242 return api; 258 return api;