more work on fs service
[oweals/gnunet.git] / src / include / gnunet_transport_service.h
index 25ca388a7160ad14aec9ed34520a14bd47bd7e44..604610774a4e23edf6e30003637aa0ebec84261a 100644 (file)
@@ -37,7 +37,7 @@ extern "C"
 
 #include "gnunet_configuration_lib.h"
 #include "gnunet_crypto_lib.h"
-#include "gnunet_network_lib.h"
+#include "gnunet_connection_lib.h"
 #include "gnunet_scheduler_lib.h"
 #include "gnunet_time_lib.h"
 
@@ -111,7 +111,7 @@ typedef void
 struct GNUNET_TRANSPORT_Handle *GNUNET_TRANSPORT_connect (struct
                                                           GNUNET_SCHEDULER_Handle
                                                           *sched,
-                                                          struct
+                                                          const struct
                                                           GNUNET_CONFIGURATION_Handle
                                                           *cfg, void *cls,
                                                           GNUNET_TRANSPORT_ReceiveCallback
@@ -168,6 +168,7 @@ struct GNUNET_TRANSPORT_TransmitHandle;
  * @param handle connection to transport service
  * @param target who should receive the message
  * @param size how big is the message we want to transmit?
+ * @param priority how important is the message?
  * @param timeout after how long should we give up (and call
  *        notify with buf NULL and size 0)?
  * @param notify function to call when we are ready to
@@ -182,9 +183,10 @@ struct GNUNET_TRANSPORT_TransmitHandle
                                            *handle,
                                            const struct GNUNET_PeerIdentity
                                            *target, size_t size,
+                                          unsigned int priority,
                                            struct GNUNET_TIME_Relative
                                            timeout,
-                                           GNUNET_NETWORK_TransmitReadyNotify
+                                           GNUNET_CONNECTION_TransmitReadyNotify
                                            notify, void *notify_cls);