X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcadet%2Fgnunet-service-cadet-new_connection.h;h=e48b208fdae0b008f9a16e39d4efc8a6b7742a1e;hb=d02945974366f76bcb63b83834175848d1cc937a;hp=61d9d5d78631544b132667426490acc1805ac2d1;hpb=8b92d9a2c651d753f756aba5710b6d59ee0f24a1;p=oweals%2Fgnunet.git diff --git a/src/cadet/gnunet-service-cadet-new_connection.h b/src/cadet/gnunet-service-cadet-new_connection.h index 61d9d5d78..e48b208fd 100644 --- a/src/cadet/gnunet-service-cadet-new_connection.h +++ b/src/cadet/gnunet-service-cadet-new_connection.h @@ -72,12 +72,23 @@ void GCC_destroy_without_tunnel (struct CadetConnection *cc); +/** + * Lookup a connection by its identifier. + * + * @param cid identifier to resolve + * @return NULL if connection was not found + */ +struct CadetConnection * +GCC_lookup (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid); + + /** * Create a connection to @a destination via @a path and * notify @a cb whenever we are ready for more data. * * @param destination where to go * @param path which path to take (may not be the full path) + * @param off offset of @a destination on @a path * @param options options for the connection * @param ct which tunnel uses this connection * @param ready_cb function to call when ready to transmit @@ -87,6 +98,7 @@ GCC_destroy_without_tunnel (struct CadetConnection *cc); struct CadetConnection * GCC_create (struct CadetPeer *destination, struct CadetPeerPath *path, + unsigned int off, enum GNUNET_CADET_ChannelOption options, struct CadetTConnection *ct, GCC_ReadyCallback ready_cb,