diff options
Diffstat (limited to 'src/include/gnunet_psycstore_plugin.h')
-rw-r--r-- | src/include/gnunet_psycstore_plugin.h | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/src/include/gnunet_psycstore_plugin.h b/src/include/gnunet_psycstore_plugin.h index 1945b400e..3f02759f6 100644 --- a/src/include/gnunet_psycstore_plugin.h +++ b/src/include/gnunet_psycstore_plugin.h | |||
@@ -112,7 +112,7 @@ struct GNUNET_PSYCSTORE_PluginFunctions | |||
112 | uint64_t psycstore_flags); | 112 | uint64_t psycstore_flags); |
113 | 113 | ||
114 | /** | 114 | /** |
115 | * Retrieve a message fragment by fragment ID. | 115 | * Retrieve a message fragment range by fragment ID. |
116 | * | 116 | * |
117 | * @see GNUNET_PSYCSTORE_fragment_get() | 117 | * @see GNUNET_PSYCSTORE_fragment_get() |
118 | * | 118 | * |
@@ -121,12 +121,29 @@ struct GNUNET_PSYCSTORE_PluginFunctions | |||
121 | int | 121 | int |
122 | (*fragment_get) (void *cls, | 122 | (*fragment_get) (void *cls, |
123 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, | 123 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
124 | uint64_t fragment_id, | 124 | uint64_t first_fragment_id, |
125 | uint64_t last_fragment_id, | ||
126 | uint64_t *returned_fragments, | ||
125 | GNUNET_PSYCSTORE_FragmentCallback cb, | 127 | GNUNET_PSYCSTORE_FragmentCallback cb, |
126 | void *cb_cls); | 128 | void *cb_cls); |
127 | 129 | ||
128 | /** | 130 | /** |
129 | * Retrieve all fragments of a message. | 131 | * Retrieve latest message fragments. |
132 | * | ||
133 | * @see GNUNET_PSYCSTORE_fragment_get() | ||
134 | * | ||
135 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR | ||
136 | */ | ||
137 | int | ||
138 | (*fragment_get_latest) (void *cls, | ||
139 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, | ||
140 | uint64_t fragment_limit, | ||
141 | uint64_t *returned_fragments, | ||
142 | GNUNET_PSYCSTORE_FragmentCallback cb, | ||
143 | void *cb_cls); | ||
144 | |||
145 | /** | ||
146 | * Retrieve all fragments of a message ID range. | ||
130 | * | 147 | * |
131 | * @see GNUNET_PSYCSTORE_message_get() | 148 | * @see GNUNET_PSYCSTORE_message_get() |
132 | * | 149 | * |
@@ -135,12 +152,28 @@ struct GNUNET_PSYCSTORE_PluginFunctions | |||
135 | int | 152 | int |
136 | (*message_get) (void *cls, | 153 | (*message_get) (void *cls, |
137 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, | 154 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, |
138 | uint64_t message_id, | 155 | uint64_t first_fragment_id, |
156 | uint64_t last_fragment_id, | ||
139 | uint64_t *returned_fragments, | 157 | uint64_t *returned_fragments, |
140 | GNUNET_PSYCSTORE_FragmentCallback cb, | 158 | GNUNET_PSYCSTORE_FragmentCallback cb, |
141 | void *cb_cls); | 159 | void *cb_cls); |
142 | 160 | ||
143 | /** | 161 | /** |
162 | * Retrieve all fragments of the latest messages. | ||
163 | * | ||
164 | * @see GNUNET_PSYCSTORE_message_get() | ||
165 | * | ||
166 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR | ||
167 | */ | ||
168 | int | ||
169 | (*message_get_latest) (void *cls, | ||
170 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, | ||
171 | uint64_t fragment_limit, | ||
172 | uint64_t *returned_fragments, | ||
173 | GNUNET_PSYCSTORE_FragmentCallback cb, | ||
174 | void *cb_cls); | ||
175 | |||
176 | /** | ||
144 | * Retrieve a fragment of message specified by its message ID and fragment | 177 | * Retrieve a fragment of message specified by its message ID and fragment |
145 | * offset. | 178 | * offset. |
146 | * | 179 | * |