diff options
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index d8b8935cc..6fd059961 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h | |||
@@ -56,6 +56,24 @@ struct GNUNET_PEERSTORE_StoreContext; | |||
56 | typedef void (*GNUNET_PEERSTORE_Continuation)(void *cls, int success); | 56 | typedef void (*GNUNET_PEERSTORE_Continuation)(void *cls, int success); |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * Function called by for each matching record. | ||
60 | * | ||
61 | * @param cls closure | ||
62 | * @param peer peer identity | ||
63 | * @param sub_system name of the GNUnet sub system responsible | ||
64 | * @param value stored value | ||
65 | * @param size size of stored value | ||
66 | * @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop | ||
67 | */ | ||
68 | typedef int (*GNUNET_PEERSTORE_Processor) (void *cls, | ||
69 | const char *sub_system, | ||
70 | const struct GNUNET_PeerIdentity *peer, | ||
71 | const char *key, | ||
72 | const void *value, | ||
73 | size_t size, | ||
74 | struct GNUNET_TIME_Absolute expiry); | ||
75 | |||
76 | /** | ||
59 | * Connect to the PEERSTORE service. | 77 | * Connect to the PEERSTORE service. |
60 | * | 78 | * |
61 | * @return NULL on error | 79 | * @return NULL on error |
@@ -91,7 +109,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h, | |||
91 | const char *key, | 109 | const char *key, |
92 | const void *value, | 110 | const void *value, |
93 | size_t size, | 111 | size_t size, |
94 | struct GNUNET_TIME_Relative lifetime, | 112 | struct GNUNET_TIME_Absolute expiry, |
95 | GNUNET_PEERSTORE_Continuation cont, | 113 | GNUNET_PEERSTORE_Continuation cont, |
96 | void *cont_cls); | 114 | void *cont_cls); |
97 | 115 | ||