From: Bart Polot Date: Thu, 7 Apr 2011 13:03:48 +0000 (+0000) Subject: Adapt all API calls to the new style X-Git-Tag: initial-import-from-subversion-38251~18747 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc6755b1900955f16b762a1964a58f69b0c76f85;p=oweals%2Fgnunet.git Adapt all API calls to the new style --- diff --git a/src/include/gnunet_mesh_service_new.h b/src/include/gnunet_mesh_service_new.h index d1e850f34..4dd738327 100644 --- a/src/include/gnunet_mesh_service_new.h +++ b/src/include/gnunet_mesh_service_new.h @@ -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);