aboutsummaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-01-18 10:21:54 +0000
committerChristian Grothoff <christian@grothoff.org>2010-01-18 10:21:54 +0000
commit7a65c4fb6e8d2f0fd85fe8e951214c39882193e7 (patch)
tree53937db780a5a1eefe84b7c30743b107afc9d314 /src/topology
parenta4bf36da4f459a4bf6cfd700e3cbe62bca6bf935 (diff)
downloadgnunet-7a65c4fb6e8d2f0fd85fe8e951214c39882193e7.tar.gz
gnunet-7a65c4fb6e8d2f0fd85fe8e951214c39882193e7.zip
cleaner code
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/gnunet-daemon-topology.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index 5dedeb42a..16707777d 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -139,6 +139,35 @@ struct HelloList
139 139
140 140
141/** 141/**
142 * Entry in linked list of active 'disconnect' requests that we have issued.
143 */
144struct DisconnectList
145{
146 /**
147 * This is a doubly-linked list.
148 */
149 struct DisconnectList *next;
150
151 /**
152 * This is a doubly-linked list.
153 */
154 struct DisconnectList *prev;
155
156 /**
157 * Our request handle.
158 */
159 struct GNUNET_CORE_InformationRequestContext *rh;
160
161 /**
162 * Peer we tried to disconnect.
163 */
164 struct GNUNET_PeerIdentity peer;
165
166};
167
168
169
170/**
142 * Our peerinfo notification context. We use notification 171 * Our peerinfo notification context. We use notification
143 * to instantly learn about new peers as they are discovered 172 * to instantly learn about new peers as they are discovered
144 * as well as periodic iteration to try peers again after 173 * as well as periodic iteration to try peers again after
@@ -230,35 +259,6 @@ static struct GNUNET_PEERINFO_IteratorContext *pitr;
230 */ 259 */
231static struct GNUNET_PEERINFO_IteratorContext *pitr_more; 260static struct GNUNET_PEERINFO_IteratorContext *pitr_more;
232 261
233
234/**
235 * Entry in linked list of active 'disconnect' requests that we have issued.
236 */
237struct DisconnectList
238{
239 /**
240 * This is a doubly-linked list.
241 */
242 struct DisconnectList *next;
243
244 /**
245 * This is a doubly-linked list.
246 */
247 struct DisconnectList *prev;
248
249 /**
250 * Our request handle.
251 */
252 struct GNUNET_CORE_InformationRequestContext *rh;
253
254 /**
255 * Peer we tried to disconnect.
256 */
257 struct GNUNET_PeerIdentity peer;
258
259};
260
261
262/** 262/**
263 * Head of doubly-linked list of active 'disconnect' requests that we have issued. 263 * Head of doubly-linked list of active 'disconnect' requests that we have issued.
264 */ 264 */