diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-01-10 21:41:44 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-01-10 21:41:44 +0000 |
commit | 02530f44ebadfe7c7758cdbad94d7fcddf28827f (patch) | |
tree | 285d5a38a57291b31846f1bb53045e311ec4b129 /src/include/gnunet_mesh_service.h | |
parent | 85aebf0bc477953b80f62bd26cd528a8932501a4 (diff) | |
download | gnunet-02530f44ebadfe7c7758cdbad94d7fcddf28827f.tar.gz gnunet-02530f44ebadfe7c7758cdbad94d7fcddf28827f.zip |
changes to the mesh-api
Diffstat (limited to 'src/include/gnunet_mesh_service.h')
-rw-r--r-- | src/include/gnunet_mesh_service.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index 8adde254e..1ff5e3bec 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h | |||
@@ -68,7 +68,7 @@ struct GNUNET_MESH_Tunnel; | |||
68 | */ | 68 | */ |
69 | typedef int | 69 | typedef int |
70 | (*GNUNET_MESH_MessageCallback) (void *cls, | 70 | (*GNUNET_MESH_MessageCallback) (void *cls, |
71 | const struct GNUNET_MESH_Tunnel *tunnel, | 71 | struct GNUNET_MESH_Tunnel *tunnel, |
72 | void **tunnel_ctx, | 72 | void **tunnel_ctx, |
73 | const struct GNUNET_MessageHeader *message, | 73 | const struct GNUNET_MessageHeader *message, |
74 | const struct GNUNET_TRANSPORT_ATS_Information *atsi); | 74 | const struct GNUNET_TRANSPORT_ATS_Information *atsi); |
@@ -134,6 +134,16 @@ GNUNET_MESH_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
134 | 134 | ||
135 | 135 | ||
136 | /** | 136 | /** |
137 | * Get the peer on the other side of this tunnel if it is just one. Return NULL otherwise | ||
138 | * | ||
139 | * @param tunnel the tunnel | ||
140 | * @return the peer or NULL | ||
141 | */ | ||
142 | const struct GNUNET_PeerIdentity* | ||
143 | GNUNET_MESH_get_peer(const struct GNUNET_MESH_Tunnel* tunnel); | ||
144 | |||
145 | |||
146 | /** | ||
137 | * Disconnect from the mesh service. | 147 | * Disconnect from the mesh service. |
138 | * | 148 | * |
139 | * @param handle connection to mesh to disconnect | 149 | * @param handle connection to mesh to disconnect |