aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_peerstore_service.h
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-05-17 16:57:49 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-05-17 16:57:49 +0000
commit7eb684ec9f93d52ebae09729fcf01c16580b5cb9 (patch)
tree72a44f01de2dc157f47a0a70ccb90d36154ddcbf /src/include/gnunet_peerstore_service.h
parent83c058a5ea11b6d7aa05cb71963c6063cb373603 (diff)
downloadgnunet-7eb684ec9f93d52ebae09729fcf01c16580b5cb9.tar.gz
gnunet-7eb684ec9f93d52ebae09729fcf01c16580b5cb9.zip
peestore: towards iterate functionality
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r--src/include/gnunet_peerstore_service.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h
index b802fb390..a3e28e6f0 100644
--- a/src/include/gnunet_peerstore_service.h
+++ b/src/include/gnunet_peerstore_service.h
@@ -97,19 +97,13 @@ typedef void (*GNUNET_PEERSTORE_Continuation)(void *cls, int success);
97 * Function called by for each matching record. 97 * Function called by for each matching record.
98 * 98 *
99 * @param cls closure 99 * @param cls closure
100 * @param peer peer identity 100 * @param record peerstore record information
101 * @param sub_system name of the GNUnet sub system responsible 101 * @param emsg error message, or NULL if no errors
102 * @param value stored value
103 * @param size size of stored value
104 * @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop 102 * @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop
105 */ 103 */
106typedef int (*GNUNET_PEERSTORE_Processor) (void *cls, 104typedef int (*GNUNET_PEERSTORE_Processor) (void *cls,
107 const char *sub_system, 105 struct GNUNET_PEERSTORE_Record *record,
108 const struct GNUNET_PeerIdentity *peer, 106 char *emsg);
109 const char *key,
110 const void *value,
111 size_t size,
112 struct GNUNET_TIME_Absolute expiry);
113 107
114/** 108/**
115 * Connect to the PEERSTORE service. 109 * Connect to the PEERSTORE service.