converting conversation to use new CADET API
[oweals/gnunet.git] / src / cadet / gnunet-service-cadet-new_connection.h
index 61d9d5d78631544b132667426490acc1805ac2d1..e48b208fdae0b008f9a16e39d4efc8a6b7742a1e 100644 (file)
@@ -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,