diff options
Diffstat (limited to 'src/dht/gnunet-service-dht_datacache.h')
-rw-r--r-- | src/dht/gnunet-service-dht_datacache.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/dht/gnunet-service-dht_datacache.h b/src/dht/gnunet-service-dht_datacache.h index ccd854570..926ad5326 100644 --- a/src/dht/gnunet-service-dht_datacache.h +++ b/src/dht/gnunet-service-dht_datacache.h | |||
@@ -44,18 +44,17 @@ | |||
44 | */ | 44 | */ |
45 | void | 45 | void |
46 | GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute expiration, | 46 | GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute expiration, |
47 | const GNUNET_HashCode *key, | 47 | const GNUNET_HashCode * key, |
48 | unsigned int put_path_length, | 48 | unsigned int put_path_length, |
49 | const struct GNUNET_PeerIdentity *put_path, | 49 | const struct GNUNET_PeerIdentity *put_path, |
50 | enum GNUNET_BLOCK_Type type, | 50 | enum GNUNET_BLOCK_Type type, size_t data_size, |
51 | size_t data_size, | 51 | const void *data); |
52 | const void *data); | ||
53 | 52 | ||
54 | 53 | ||
55 | /** | 54 | /** |
56 | * Handle a GET request we've received from another peer. | 55 | * Handle a GET request we've received from another peer. |
57 | * | 56 | * |
58 | * @param key the query | 57 | * @param key the query |
59 | * @param type requested data type | 58 | * @param type requested data type |
60 | * @param xquery extended query | 59 | * @param xquery extended query |
61 | * @param xquery_size number of bytes in xquery | 60 | * @param xquery_size number of bytes in xquery |
@@ -63,19 +62,18 @@ GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute expiration, | |||
63 | * @param reply_bf_mutator mutation value for reply_bf | 62 | * @param reply_bf_mutator mutation value for reply_bf |
64 | * @return evaluation result for the local replies | 63 | * @return evaluation result for the local replies |
65 | */ | 64 | */ |
66 | enum GNUNET_BLOCK_EvaluationResult | 65 | enum GNUNET_BLOCK_EvaluationResult |
67 | GDS_DATACACHE_handle_get (const GNUNET_HashCode *key, | 66 | GDS_DATACACHE_handle_get (const GNUNET_HashCode * key, |
68 | enum GNUNET_BLOCK_Type type, | 67 | enum GNUNET_BLOCK_Type type, const void *xquery, |
69 | const void *xquery, | 68 | size_t xquery_size, |
70 | size_t xquery_size, | 69 | struct GNUNET_CONTAINER_BloomFilter **reply_bf, |
71 | struct GNUNET_CONTAINER_BloomFilter **reply_bf, | 70 | uint32_t reply_bf_mutator); |
72 | uint32_t reply_bf_mutator); | ||
73 | 71 | ||
74 | 72 | ||
75 | /** | 73 | /** |
76 | * Initialize datacache subsystem. | 74 | * Initialize datacache subsystem. |
77 | */ | 75 | */ |
78 | void | 76 | void |
79 | GDS_DATACACHE_init (void); | 77 | GDS_DATACACHE_init (void); |
80 | 78 | ||
81 | 79 | ||