messages for inter-controller overlay connect
[oweals/gnunet.git] / src / include / gnunet_transport_plugin.h
index fb0271a8ff055553a3aae7342254f7e2d50d4b21..3fb6e2e0854155b991e40f69a7a83c900d09188e 100644 (file)
@@ -155,10 +155,12 @@ typedef struct GNUNET_ATS_Information
  * @param addr one of the addresses of the host
  *        the specific address format depends on the transport
  * @param addrlen length of the address
+ * @param dest_plugin plugin to use this address with
  */
 typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, int add_remove,
                                                       const void *addr,
-                                                      size_t addrlen);
+                                                      size_t addrlen,
+                                                      const char *dest_plugin);
 
 
 /**
@@ -189,8 +191,8 @@ typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_TrafficReport) (void
 /**
  * Function that returns a HELLO message.
  */
-typedef const struct GNUNET_MessageHeader
-    *(*GNUNET_TRANSPORT_GetHelloCallback) (void);
+typedef const struct GNUNET_MessageHeader *
+    (*GNUNET_TRANSPORT_GetHelloCallback) (void);
 
 
 /**
@@ -438,7 +440,7 @@ typedef const char *(*GNUNET_TRANSPORT_AddressToString) (void *cls,
  *
  * @param cls closure ('struct Plugin*')
  * @param addr string address
- * @param addrlen length of the address
+ * @param addrlen length of the address including \0 termination
  * @param buf location to store the buffer
  *        If the function returns GNUNET_SYSERR, its contents are undefined.
  * @param added length of created address