diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-29 08:29:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-29 08:29:16 +0000 |
commit | 4221441f74e1fcdf87ee9811b6f97d0cfd6799a4 (patch) | |
tree | ef93b5ffbf3eff42c3bc8c0c2b5e640c2d8a25fd /src/dht/gnunet-service-dht_datacache.c | |
parent | 11a321ac1c47f39d44fa58149501a7c12d62e379 (diff) | |
download | gnunet-4221441f74e1fcdf87ee9811b6f97d0cfd6799a4.tar.gz gnunet-4221441f74e1fcdf87ee9811b6f97d0cfd6799a4.zip |
-doxygen
Diffstat (limited to 'src/dht/gnunet-service-dht_datacache.c')
-rw-r--r-- | src/dht/gnunet-service-dht_datacache.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/dht/gnunet-service-dht_datacache.c b/src/dht/gnunet-service-dht_datacache.c index 0b067dca4..36cba9a3d 100644 --- a/src/dht/gnunet-service-dht_datacache.c +++ b/src/dht/gnunet-service-dht_datacache.c | |||
@@ -17,7 +17,6 @@ | |||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | |||
21 | /** | 20 | /** |
22 | * @file dht/gnunet-service-dht_datacache.c | 21 | * @file dht/gnunet-service-dht_datacache.c |
23 | * @brief GNUnet DHT service's datacache integration | 22 | * @brief GNUnet DHT service's datacache integration |
@@ -78,11 +77,20 @@ GDS_DATACACHE_handle_put (struct GNUNET_TIME_Absolute expiration, | |||
78 | GNUNET_STATISTICS_update (GDS_stats, | 77 | GNUNET_STATISTICS_update (GDS_stats, |
79 | gettext_noop ("# ITEMS stored in datacache"), 1, | 78 | gettext_noop ("# ITEMS stored in datacache"), 1, |
80 | GNUNET_NO); | 79 | GNUNET_NO); |
81 | r = GNUNET_DATACACHE_put (datacache, key, data_size, data, type, expiration, | 80 | r = GNUNET_DATACACHE_put (datacache, |
82 | put_path_length, put_path); | 81 | key, |
82 | data_size, | ||
83 | data, | ||
84 | type, | ||
85 | expiration, | ||
86 | put_path_length, | ||
87 | put_path); | ||
83 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 88 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
84 | "DATACACHE PUT for key %s [%u] completed (%d) after %u hops\n", | 89 | "DATACACHE PUT for key %s [%u] completed (%d) after %u hops\n", |
85 | GNUNET_h2s (key), data_size, r, put_path_length); | 90 | GNUNET_h2s (key), |
91 | data_size, | ||
92 | r, | ||
93 | put_path_length); | ||
86 | } | 94 | } |
87 | 95 | ||
88 | 96 | ||
@@ -112,7 +120,7 @@ struct GetRequestContext | |||
112 | size_t xquery_size; | 120 | size_t xquery_size; |
113 | 121 | ||
114 | /** | 122 | /** |
115 | * Mutator value for the reply_bf, see gnunet_block_lib.h | 123 | * Mutator value for the @e reply_bf, see gnunet_block_lib.h |
116 | */ | 124 | */ |
117 | uint32_t reply_bf_mutator; | 125 | uint32_t reply_bf_mutator; |
118 | 126 | ||
@@ -126,7 +134,7 @@ struct GetRequestContext | |||
126 | /** | 134 | /** |
127 | * Iterator for local get request results, | 135 | * Iterator for local get request results, |
128 | * | 136 | * |
129 | * @param cls closure for iterator, a DatacacheGetContext | 137 | * @param cls closure for iterator, a `struct GetRequestContext` |
130 | * @param exp when does this value expire? | 138 | * @param exp when does this value expire? |
131 | * @param key the key this data is stored under | 139 | * @param key the key this data is stored under |
132 | * @param size the size of the data identified by key | 140 | * @param size the size of the data identified by key |