diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-02-15 13:07:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-02-15 13:07:14 +0000 |
commit | e3d12cb6fa5ddfb181dcade2e06888619f384457 (patch) | |
tree | e06e3bee1b98f3d8b917a328085e27b1081f1398 /src/fs/gnunet-service-fs_pr.h | |
parent | 3294e6c66210cdcca65524593ce09bbf4db14c7f (diff) | |
download | gnunet-e3d12cb6fa5ddfb181dcade2e06888619f384457.tar.gz gnunet-e3d12cb6fa5ddfb181dcade2e06888619f384457.zip |
stuff
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.h')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.h | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs_pr.h b/src/fs/gnunet-service-fs_pr.h index 88c650042..bb6920ab1 100644 --- a/src/fs/gnunet-service-fs_pr.h +++ b/src/fs/gnunet-service-fs_pr.h | |||
@@ -92,6 +92,16 @@ struct GSF_PendingRequestData | |||
92 | struct GNUNET_PeerIdentity target; | 92 | struct GNUNET_PeerIdentity target; |
93 | 93 | ||
94 | /** | 94 | /** |
95 | * Current TTL for the request. | ||
96 | */ | ||
97 | struct GNUNET_TIME_Absolute ttl; | ||
98 | |||
99 | /** | ||
100 | * When did we start with the request. | ||
101 | */ | ||
102 | struct GNUNET_TIME_Absolute start_time; | ||
103 | |||
104 | /** | ||
95 | * Desired anonymity level. | 105 | * Desired anonymity level. |
96 | */ | 106 | */ |
97 | uint32_t anonymity_level; | 107 | uint32_t anonymity_level; |
@@ -146,10 +156,12 @@ typedef void (*GSF_PendingRequestReplyHandler)(void *cls, | |||
146 | * @param query key for the lookup | 156 | * @param query key for the lookup |
147 | * @param namespace namespace to lookup, NULL for no namespace | 157 | * @param namespace namespace to lookup, NULL for no namespace |
148 | * @param target preferred target for the request, NULL for none | 158 | * @param target preferred target for the request, NULL for none |
149 | * @param bf bloom filter for known replies, can be NULL | 159 | * @param bf_data raw data for bloom filter for known replies, can be NULL |
160 | * @param bf_size number of bytes in bf_data | ||
150 | * @param mingle mingle value for bf | 161 | * @param mingle mingle value for bf |
151 | * @param anonymity_level desired anonymity level | 162 | * @param anonymity_level desired anonymity level |
152 | * @param priority maximum outgoing cummulative request priority to use | 163 | * @param priority maximum outgoing cummulative request priority to use |
164 | * @param ttl current time-to-live for the request | ||
153 | * @param replies_seen hash codes of known local replies | 165 | * @param replies_seen hash codes of known local replies |
154 | * @param replies_seen_count size of the 'replies_seen' array | 166 | * @param replies_seen_count size of the 'replies_seen' array |
155 | * @param rh handle to call when we get a reply | 167 | * @param rh handle to call when we get a reply |
@@ -162,10 +174,12 @@ GSF_pending_request_create_ (enum GSF_PendingRequestOptions options, | |||
162 | const GNUNET_HashCode *query, | 174 | const GNUNET_HashCode *query, |
163 | const GNUNET_HashCode *namespace, | 175 | const GNUNET_HashCode *namespace, |
164 | const struct GNUNET_PeerIdentity *target, | 176 | const struct GNUNET_PeerIdentity *target, |
165 | const struct GNUNET_CONTAINER_BloomFilter *bf, | 177 | const char *bf_data, |
178 | size_t bf_size, | ||
166 | int32_t mingle, | 179 | int32_t mingle, |
167 | uint32_t anonymity_level, | 180 | uint32_t anonymity_level, |
168 | uint32_t priority, | 181 | uint32_t priority, |
182 | int32_t ttl, | ||
169 | const GNUNET_HashCode *replies_seen, | 183 | const GNUNET_HashCode *replies_seen, |
170 | unsigned int replies_seen_count, | 184 | unsigned int replies_seen_count, |
171 | GSF_PendingRequestReplyHandler rh, | 185 | GSF_PendingRequestReplyHandler rh, |
@@ -187,6 +201,16 @@ GSF_pending_request_update_ (struct GSF_PendingRequest *pr, | |||
187 | 201 | ||
188 | 202 | ||
189 | /** | 203 | /** |
204 | * Obtain the public data associated with a pending request | ||
205 | * | ||
206 | * @param pr pending request | ||
207 | * @return associated public data | ||
208 | */ | ||
209 | struct GSF_PendingRequestData * | ||
210 | GSF_pending_request_get_data_ (struct GSF_PendingRequest *pr); | ||
211 | |||
212 | |||
213 | /** | ||
190 | * Generate the message corresponding to the given pending request for | 214 | * Generate the message corresponding to the given pending request for |
191 | * transmission to other peers (or at least determine its size). | 215 | * transmission to other peers (or at least determine its size). |
192 | * | 216 | * |