- use new data callback with no sender info
authorBart Polot <bart@net.in.tum.de>
Wed, 19 Jun 2013 11:59:48 +0000 (11:59 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 19 Jun 2013 11:59:48 +0000 (11:59 +0000)
src/mesh/test_mesh2_local.c
src/mesh/test_mesh2_small.c

index b62cc9ac82a0539a1be5d3239a04af331b20d9bb..68452ffdf2d16e91ea9888126f414aa8cdbdf4d7 100644 (file)
@@ -97,7 +97,6 @@ do_abort (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
  * @param cls closure (set from GNUNET_MESH_connect)
  * @param tunnel connection to the other end
  * @param tunnel_ctx place to store local state associated with the tunnel
- * @param sender who sent the message
  * @param message the actual message
  * 
  * @return GNUNET_OK to keep the connection open,
@@ -105,7 +104,6 @@ do_abort (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
  */
 static int
 data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
-               const struct GNUNET_PeerIdentity *sender,
                const struct GNUNET_MessageHeader *message)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Data callback\n");
index ba21a3848b5e07bd11bbd21d9ee57ded9df7c645..eabffeb11b60fcec0dfa83b8541407c61f5c9ca9 100644 (file)
@@ -393,14 +393,12 @@ tmt_rdy (void *cls, size_t size, void *buf)
  * @param cls closure (set from GNUNET_MESH_connect)
  * @param tunnel connection to the other end
  * @param tunnel_ctx place to store local state associated with the tunnel
- * @param sender who sent the message
  * @param message the actual message
  * @return GNUNET_OK to keep the connection open,
  *         GNUNET_SYSERR to close it (signal serious error)
  */
 int
 data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
-               const struct GNUNET_PeerIdentity *sender,
                const struct GNUNET_MessageHeader *message)
 {
   long client = (long) cls;