diff options
author | t3sserakt <t3ss@posteo.de> | 2019-06-26 01:21:41 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2019-06-26 01:21:41 +0200 |
commit | 67d5962e8540589e7e712c122c313a92dd86b4e7 (patch) | |
tree | fccccab1027f9351e1e9144dadd87f9365e161a3 | |
parent | c9cb240e053e9eff9c499d37484b6e1066ed4289 (diff) | |
download | gnunet-67d5962e8540589e7e712c122c313a92dd86b4e7.tar.gz gnunet-67d5962e8540589e7e712c122c313a92dd86b4e7.zip |
fixed chanel_get_info
-rw-r--r-- | src/cadet/cadet_api.c | 11 | ||||
-rw-r--r-- | src/include/gnunet_cadet_service.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 825768034..0e655ee33 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -32,17 +32,6 @@ | |||
32 | 32 | ||
33 | #define LOG(kind, ...) GNUNET_log_from (kind, "cadet-api", __VA_ARGS__) | 33 | #define LOG(kind, ...) GNUNET_log_from (kind, "cadet-api", __VA_ARGS__) |
34 | 34 | ||
35 | enum GNUNET_CADET_ChannelInfoOption | ||
36 | { | ||
37 | /** | ||
38 | * Who is the peer at the other end of the channel. | ||
39 | * Only for use in @c GNUNET_CADET_channel_get_info | ||
40 | * struct GNUNET_PeerIdentity *peer | ||
41 | */ | ||
42 | GNUNET_CADET_OPTION_PEER = 0x0 | ||
43 | |||
44 | }; | ||
45 | |||
46 | /** | 35 | /** |
47 | * Opaque handle to the service. | 36 | * Opaque handle to the service. |
48 | */ | 37 | */ |
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index fd591924a..ba4d60eb8 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -279,6 +279,16 @@ GNUNET_CADET_receive_done (struct GNUNET_CADET_Channel *channel); | |||
279 | const struct GNUNET_HashCode * | 279 | const struct GNUNET_HashCode * |
280 | GC_u2h (uint32_t port); | 280 | GC_u2h (uint32_t port); |
281 | 281 | ||
282 | enum GNUNET_CADET_ChannelInfoOption | ||
283 | { | ||
284 | /** | ||
285 | * Who is the peer at the other end of the channel. | ||
286 | * Only for use in @c GNUNET_CADET_channel_get_info | ||
287 | * struct GNUNET_PeerIdentity *peer | ||
288 | */ | ||
289 | GNUNET_CADET_OPTION_PEER = 0x0 | ||
290 | |||
291 | }; | ||
282 | 292 | ||
283 | /** | 293 | /** |
284 | * Union to retrieve info about a channel. | 294 | * Union to retrieve info about a channel. |
@@ -307,6 +317,7 @@ union GNUNET_CADET_ChannelInfo | |||
307 | */ | 317 | */ |
308 | const union GNUNET_CADET_ChannelInfo * | 318 | const union GNUNET_CADET_ChannelInfo * |
309 | GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, | 319 | GNUNET_CADET_channel_get_info (struct GNUNET_CADET_Channel *channel, |
320 | enum GNUNET_CADET_ChannelInfoOption option, | ||
310 | ...); | 321 | ...); |
311 | 322 | ||
312 | 323 | ||