aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh_api.c
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-04-10 11:22:34 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-04-10 11:22:34 +0000
commit43939383f2324840b5f2ebecfed5e23cbf1e4aa1 (patch)
tree3cc91d2be152dc96c16b7832faaf84509481e8d7 /src/mesh/mesh_api.c
parent9d34b3289c7c9dd1c888d605993a8b53fa905c11 (diff)
downloadgnunet-43939383f2324840b5f2ebecfed5e23cbf1e4aa1.tar.gz
gnunet-43939383f2324840b5f2ebecfed5e23cbf1e4aa1.zip
added TODOs
Diffstat (limited to 'src/mesh/mesh_api.c')
-rw-r--r--src/mesh/mesh_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 12759f2a7..68b2e587d 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -313,6 +313,9 @@ receive_hello (void *cls,
313 element = element->next; 313 element = element->next;
314 } 314 }
315 315
316 /* TODO: handle self */
317 /* TODO: add, not replace! */
318 /* TODO: if this changes anything: send new hello */
316 element->num_types = *num; 319 element->num_types = *num;
317 element->types = GNUNET_malloc (*num * sizeof (GNUNET_MESH_ApplicationType)); 320 element->types = GNUNET_malloc (*num * sizeof (GNUNET_MESH_ApplicationType));
318 321
@@ -657,6 +660,8 @@ GNUNET_MESH_connect (const struct
657 memcpy (ret->handlers, handlers, 660 memcpy (ret->handlers, handlers,
658 len * sizeof (struct GNUNET_MESH_MessageHandler)); 661 len * sizeof (struct GNUNET_MESH_MessageHandler));
659 662
663 /* TODO: build hello */
664
660 const static struct GNUNET_CORE_MessageHandler core_handlers[] = { 665 const static struct GNUNET_CORE_MessageHandler core_handlers[] = {
661 {&core_receive, GNUNET_MESSAGE_TYPE_MESH, 0}, 666 {&core_receive, GNUNET_MESSAGE_TYPE_MESH, 0},
662 {&receive_hello, GNUNET_MESSAGE_TYPE_MESH_HELLO, 0}, 667 {&receive_hello, GNUNET_MESSAGE_TYPE_MESH_HELLO, 0},