Adapt all API calls to the new style
authorBart Polot <bart@net.in.tum.de>
Thu, 7 Apr 2011 13:03:48 +0000 (13:03 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 7 Apr 2011 13:03:48 +0000 (13:03 +0000)
src/include/gnunet_mesh_service_new.h

index d1e850f344229df569aec3c4d6ebc7191c6197ea..4dd7383270f7898b980a7d349a64c9f1e69aeab3 100644 (file)
@@ -141,16 +141,6 @@ GNUNET_MESH_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
                      const struct GNUNET_MESH_MessageHandler *handlers, 
                     const GNUNET_MESH_ApplicationType *stypes);
 
-/**
- * Get the peer on the other side of this tunnel if it is just one. Return NULL otherwise
- * 
- * @deprecated
- * @param tunnel the tunnel
- * @return the peer or NULL
- */
-const struct GNUNET_PeerIdentity*
-GNUNET_MESH_get_peer (const struct GNUNET_MESH_Tunnel* tunnel);
-
 
 /**
  * Disconnect from the mesh service.
@@ -241,9 +231,8 @@ GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
  * @param timeout how long to try to establish a connection
  * @param app_type application type that must be supported by the peer (MESH should
  *                discover peer in proximity handling this type)
- * @return NULL on error (handler will not be called), otherwise handle for cancellation
  */
-struct GNUNET_MESH_Tunnel *
+void
 GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Tunnel *tunnel,
                                          struct GNUNET_TIME_Relative timeout,
                                          GNUNET_MESH_ApplicationType app_type);