diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-24 11:58:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-24 11:58:31 +0000 |
commit | 3bca0a62abc14e5fe36e1c80ff487e0051dad562 (patch) | |
tree | 25a9dc36162d498910f6e41aa85a0d3863e0c1c0 /src/include/gnunet_peerstore_plugin.h | |
parent | d02c15600b668a30e091d2c5c59d918bb1e4fee7 (diff) | |
download | gnunet-3bca0a62abc14e5fe36e1c80ff487e0051dad562.tar.gz gnunet-3bca0a62abc14e5fe36e1c80ff487e0051dad562.zip |
migrate peerstore to new service MQ API
Diffstat (limited to 'src/include/gnunet_peerstore_plugin.h')
-rw-r--r-- | src/include/gnunet_peerstore_plugin.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/include/gnunet_peerstore_plugin.h b/src/include/gnunet_peerstore_plugin.h index 65359aefd..1d731f2cc 100644 --- a/src/include/gnunet_peerstore_plugin.h +++ b/src/include/gnunet_peerstore_plugin.h | |||
@@ -72,15 +72,15 @@ struct GNUNET_PEERSTORE_PluginFunctions | |||
72 | */ | 72 | */ |
73 | int | 73 | int |
74 | (*store_record) (void *cls, | 74 | (*store_record) (void *cls, |
75 | const char *sub_system, | 75 | const char *sub_system, |
76 | const struct GNUNET_PeerIdentity *peer, | 76 | const struct GNUNET_PeerIdentity *peer, |
77 | const char *key, | 77 | const char *key, |
78 | const void *value, | 78 | const void *value, |
79 | size_t size, | 79 | size_t size, |
80 | struct GNUNET_TIME_Absolute expiry, | 80 | struct GNUNET_TIME_Absolute expiry, |
81 | enum GNUNET_PEERSTORE_StoreOption options, | 81 | enum GNUNET_PEERSTORE_StoreOption options, |
82 | GNUNET_PEERSTORE_Continuation cont, | 82 | GNUNET_PEERSTORE_Continuation cont, |
83 | void *cont_cls); | 83 | void *cont_cls); |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Iterate over the records given an optional peer id | 86 | * Iterate over the records given an optional peer id |
@@ -98,10 +98,11 @@ struct GNUNET_PEERSTORE_PluginFunctions | |||
98 | */ | 98 | */ |
99 | int | 99 | int |
100 | (*iterate_records) (void *cls, | 100 | (*iterate_records) (void *cls, |
101 | const char *sub_system, | 101 | const char *sub_system, |
102 | const struct GNUNET_PeerIdentity *peer, | 102 | const struct GNUNET_PeerIdentity *peer, |
103 | const char *key, | 103 | const char *key, |
104 | GNUNET_PEERSTORE_Processor iter, void *iter_cls); | 104 | GNUNET_PEERSTORE_Processor iter, |
105 | void *iter_cls); | ||
105 | 106 | ||
106 | /** | 107 | /** |
107 | * Delete expired records (expiry < now) | 108 | * Delete expired records (expiry < now) |
@@ -115,9 +116,9 @@ struct GNUNET_PEERSTORE_PluginFunctions | |||
115 | */ | 116 | */ |
116 | int | 117 | int |
117 | (*expire_records) (void *cls, | 118 | (*expire_records) (void *cls, |
118 | struct GNUNET_TIME_Absolute now, | 119 | struct GNUNET_TIME_Absolute now, |
119 | GNUNET_PEERSTORE_Continuation cont, | 120 | GNUNET_PEERSTORE_Continuation cont, |
120 | void *cont_cls); | 121 | void *cont_cls); |
121 | 122 | ||
122 | }; | 123 | }; |
123 | 124 | ||