aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/plugin_peerstore_flat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerstore/plugin_peerstore_flat.c')
-rw-r--r--src/peerstore/plugin_peerstore_flat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/peerstore/plugin_peerstore_flat.c b/src/peerstore/plugin_peerstore_flat.c
index 224664685..6983ff2d8 100644
--- a/src/peerstore/plugin_peerstore_flat.c
+++ b/src/peerstore/plugin_peerstore_flat.c
@@ -146,6 +146,7 @@ peerstore_flat_delete_records (void *cls, const char *sub_system,
146 return plugin->deleted_entries; 146 return plugin->deleted_entries;
147} 147}
148 148
149
149static int 150static int
150expire_entries (void *cls, 151expire_entries (void *cls,
151 const struct GNUNET_HashCode *key, 152 const struct GNUNET_HashCode *key,
@@ -163,7 +164,6 @@ expire_entries (void *cls,
163} 164}
164 165
165 166
166
167/** 167/**
168 * Delete expired records (expiry < now) 168 * Delete expired records (expiry < now)
169 * 169 *
@@ -222,6 +222,7 @@ iterate_entries (void *cls,
222 return GNUNET_YES; 222 return GNUNET_YES;
223} 223}
224 224
225
225/** 226/**
226 * Iterate over the records given an optional peer id 227 * Iterate over the records given an optional peer id
227 * and/or key. 228 * and/or key.
@@ -478,6 +479,7 @@ database_setup (struct Plugin *plugin)
478 return GNUNET_OK; 479 return GNUNET_OK;
479} 480}
480 481
482
481static int 483static int
482store_and_free_entries (void *cls, 484store_and_free_entries (void *cls,
483 const struct GNUNET_HashCode *key, 485 const struct GNUNET_HashCode *key,
@@ -517,6 +519,7 @@ store_and_free_entries (void *cls,
517 return GNUNET_YES; 519 return GNUNET_YES;
518} 520}
519 521
522
520/** 523/**
521 * Shutdown database connection and associate data 524 * Shutdown database connection and associate data
522 * structures. 525 * structures.
@@ -599,4 +602,5 @@ libgnunet_plugin_peerstore_flat_done (void *cls)
599 return NULL; 602 return NULL;
600} 603}
601 604
605
602/* end of plugin_peerstore_sqlite.c */ 606/* end of plugin_peerstore_sqlite.c */