diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-25 23:47:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-25 23:47:39 +0000 |
commit | 7c55f94e78c72d3b78a5c6007e3658ae30e1f64b (patch) | |
tree | 77cb53d80cbb79053a68c71a270586e6e0dcb1ef /src/fs/gnunet-service-fs_pr.h | |
parent | 124f3e77a5e022f5f7ab49df49023d0080bcbbb4 (diff) | |
download | gnunet-7c55f94e78c72d3b78a5c6007e3658ae30e1f64b.tar.gz gnunet-7c55f94e78c72d3b78a5c6007e3658ae30e1f64b.zip |
-use hash in prd query to reduce memory consumption of CP request_map
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.h')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/fs/gnunet-service-fs_pr.h b/src/fs/gnunet-service-fs_pr.h index d022d8640..547595b67 100644 --- a/src/fs/gnunet-service-fs_pr.h +++ b/src/fs/gnunet-service-fs_pr.h | |||
@@ -179,25 +179,22 @@ struct GSF_PendingRequestData | |||
179 | * @param eval evaluation of the result | 179 | * @param eval evaluation of the result |
180 | * @param pr handle to the original pending request | 180 | * @param pr handle to the original pending request |
181 | * @param reply_anonymity_level anonymity level for the reply, UINT32_MAX for "unknown" | 181 | * @param reply_anonymity_level anonymity level for the reply, UINT32_MAX for "unknown" |
182 | * @param expiration when does 'data' expire? | 182 | * @param expiration when does @a data expire? |
183 | * @param last_transmission the last time we've tried to get this block (FOREVER if unknown) | 183 | * @param last_transmission the last time we've tried to get this block (FOREVER if unknown) |
184 | * @param type type of the block | 184 | * @param type type of the block |
185 | * @param data response data, NULL on request expiration | 185 | * @param data response data, NULL on request expiration |
186 | * @param data_len number of bytes in data | 186 | * @param data_len number of bytes in @a data |
187 | */ | 187 | */ |
188 | typedef void (*GSF_PendingRequestReplyHandler) (void *cls, | 188 | typedef void |
189 | enum | 189 | (*GSF_PendingRequestReplyHandler) (void *cls, |
190 | GNUNET_BLOCK_EvaluationResult | 190 | enum GNUNET_BLOCK_EvaluationResult eval, |
191 | eval, | 191 | struct GSF_PendingRequest *pr, |
192 | struct GSF_PendingRequest * pr, | 192 | uint32_t reply_anonymity_level, |
193 | uint32_t reply_anonymity_level, | 193 | struct GNUNET_TIME_Absolute expiration, |
194 | struct GNUNET_TIME_Absolute | 194 | struct GNUNET_TIME_Absolute last_transmission, |
195 | expiration, | 195 | enum GNUNET_BLOCK_Type type, |
196 | struct GNUNET_TIME_Absolute | 196 | const void *data, |
197 | last_transmission, | 197 | size_t data_len); |
198 | enum GNUNET_BLOCK_Type type, | ||
199 | const void *data, | ||
200 | size_t data_len); | ||
201 | 198 | ||
202 | 199 | ||
203 | /** | 200 | /** |