gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35710 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r35710 - gnunet/src/dht
Date: Fri, 1 May 2015 11:36:22 +0200

Author: grothoff
Date: 2015-05-01 11:36:22 +0200 (Fri, 01 May 2015)
New Revision: 35710

Modified:
   gnunet/src/dht/gnunet-service-wdht_neighbours.c
Log:
-pass trail paths to callbacks

Modified: gnunet/src/dht/gnunet-service-wdht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-wdht_neighbours.c     2015-05-01 09:33:22 UTC 
(rev 35709)
+++ gnunet/src/dht/gnunet-service-wdht_neighbours.c     2015-05-01 09:36:22 UTC 
(rev 35710)
@@ -1320,12 +1320,16 @@
  *
  * @param cls closure (NULL)
  * @param trail_id path to the originator
+ * @param trail_path path the message took on the trail, if available
+ * @param trail_path_length number of entries on the @a trail_path
  * @param message the finger setup message
  * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 static int
 handle_dht_p2p_successor_find (void *cls,
                                const struct GNUNET_HashCode *trail_id,
+                               const struct GNUNET_PeerIdentity *trail_path,
+                               unsigned int trail_path_length,
                                const struct GNUNET_MessageHeader *message)
 {
   const struct FindSuccessorMessage *fsm;
@@ -1347,12 +1351,16 @@
  *
  * @param cls closure (NULL)
  * @param trail_id path to the originator
+ * @param trail_path path the message took on the trail, if available
+ * @param trail_path_length number of entries on the @a trail_path
  * @param message the peer get message
  * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 static int
 handle_dht_p2p_peer_get (void *cls,
                          const struct GNUNET_HashCode *trail_id,
+                         const struct GNUNET_PeerIdentity *trail_path,
+                         unsigned int trail_path_length,
                          const struct GNUNET_MessageHeader *message)
 {
   const struct PeerGetMessage *pgm;
@@ -1378,12 +1386,16 @@
  *
  * @param cls closure (NULL)
  * @param trail_id path to the originator
+ * @param trail_path path the message took on the trail, if available
+ * @param trail_path_length number of entries on the @a trail_path
  * @param message the peer get result message
  * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 static int
 handle_dht_p2p_peer_get_result (void *cls,
                                 const struct GNUNET_HashCode *trail_id,
+                                const struct GNUNET_PeerIdentity *trail_path,
+                                unsigned int trail_path_length,
                                 const struct GNUNET_MessageHeader *message)
 {
   const struct PeerGetResultMessage *pgrm;
@@ -1414,12 +1426,16 @@
  *
  * @param cls closure (NULL)
  * @param trail_id path to the originator
+ * @param trail_path path the message took on the trail, if available
+ * @param trail_path_length number of entries on the @a trail_path
  * @param message the peer put message
  * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 static int
 handle_dht_p2p_peer_put (void *cls,
                          const struct GNUNET_HashCode *trail_id,
+                         const struct GNUNET_PeerIdentity *trail_path,
+                         unsigned int trail_path_length,
                          const struct GNUNET_MessageHeader *message)
 {
   const struct PeerGetResultMessage *pgrm;
@@ -1459,12 +1475,16 @@
  *
  * @param cls closure
  * @param trail_id trail identifier
+ * @param trail_path path the message took on the trail, if available
+ * @param trail_path_length number of entries on the @a trail_path
  * @param message the message we got
  * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 typedef int
 (*TrailHandlerCallback)(void *cls,
                         const struct GNUNET_HashCode *trail_id,
+                        const struct GNUNET_PeerIdentity *trail_path,
+                        unsigned int trail_path_length,
                         const struct GNUNET_MessageHeader *message);
 
 
@@ -1610,6 +1630,8 @@
            (ntohs (payload->size) == th->message_size) )
         th->callback (th->cls,
                       &trm->trail_id,
+                      path,
+                      path_length,
                       payload);
       else
         GNUNET_break_op (0);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]