diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-02-08 22:57:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-02-08 22:57:06 +0000 |
commit | 6cf52d591c8a72c1fd5b71850e3abe85ffe3433a (patch) | |
tree | abc4def5826a72aee5dfeefa55b6b378e77b525b /src/fs/gnunet-service-fs_pr.c | |
parent | eda4a5ba9aadcbf554f511c58db8bc51f0638d71 (diff) | |
download | gnunet-6cf52d591c8a72c1fd5b71850e3abe85ffe3433a.tar.gz gnunet-6cf52d591c8a72c1fd5b71850e3abe85ffe3433a.zip |
stuff
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.c | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c index 343ec3ada..ad19a807e 100644 --- a/src/fs/gnunet-service-fs_pr.c +++ b/src/fs/gnunet-service-fs_pr.c | |||
@@ -28,6 +28,38 @@ | |||
28 | 28 | ||
29 | 29 | ||
30 | /** | 30 | /** |
31 | * An active request. | ||
32 | */ | ||
33 | struct GSF_PendingRequest | ||
34 | { | ||
35 | /** | ||
36 | * Public data for the request. | ||
37 | */ | ||
38 | struct GSF_PendingRequestData public_data; | ||
39 | |||
40 | GSF_PendingRequestReplyHandler rh; | ||
41 | |||
42 | void *rh_cls; | ||
43 | |||
44 | const GNUNET_HashCode *replies_seen; | ||
45 | |||
46 | struct GNUNET_CONTAINER_BloomFilter *bf; | ||
47 | |||
48 | unsigned int replies_seen_count; | ||
49 | |||
50 | int32_t mingle; | ||
51 | |||
52 | }; | ||
53 | |||
54 | |||
55 | /** | ||
56 | * All pending requests, ordered by the query. Entries | ||
57 | * are of type 'struct GSF_PendingRequest*'. | ||
58 | */ | ||
59 | static struct GNUNET_CONTAINER_MultiHashMap *requests; | ||
60 | |||
61 | |||
62 | /** | ||
31 | * Create a new pending request. | 63 | * Create a new pending request. |
32 | * | 64 | * |
33 | * @param options request options | 65 | * @param options request options |
@@ -51,7 +83,7 @@ GSF_pending_request_create_ (enum GSF_PendingRequestOptions options, | |||
51 | const GNUNET_HashCode *query, | 83 | const GNUNET_HashCode *query, |
52 | const GNUNET_HashCode *namespace, | 84 | const GNUNET_HashCode *namespace, |
53 | const struct GNUNET_PeerIdentity *target, | 85 | const struct GNUNET_PeerIdentity *target, |
54 | struct GNUNET_CONTAINER_BloomFilter *bf, | 86 | const struct GNUNET_CONTAINER_BloomFilter *bf, |
55 | int32_t mingle, | 87 | int32_t mingle, |
56 | uint32_t anonymity_level, | 88 | uint32_t anonymity_level, |
57 | uint32_t priority, | 89 | uint32_t priority, |