aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_hello.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-19 01:08:03 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-19 01:08:03 +0000
commitf735158d94616b75ade351a3cce226483b8af55e (patch)
tree1cd9732b99cc6437fec7751b8f3c9ef28f0371c9 /src/transport/gnunet-service-transport_hello.h
parentd769049a7db56037ea4aff3d9d8a8d42a373ec9c (diff)
downloadgnunet-f735158d94616b75ade351a3cce226483b8af55e.tar.gz
gnunet-f735158d94616b75ade351a3cce226483b8af55e.zip
-towards improved ATS API, adding return value with address record when adding address, adding new subsystem with peer-to-address map to transport; causes various new assertions to fail, but no major regression -- not finished
Diffstat (limited to 'src/transport/gnunet-service-transport_hello.h')
-rw-r--r--src/transport/gnunet-service-transport_hello.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/transport/gnunet-service-transport_hello.h b/src/transport/gnunet-service-transport_hello.h
index 0c67cef4d..725a6167e 100644
--- a/src/transport/gnunet-service-transport_hello.h
+++ b/src/transport/gnunet-service-transport_hello.h
@@ -17,7 +17,6 @@
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20
21/** 20/**
22 * @file transport/gnunet-service-transport_hello.h 21 * @file transport/gnunet-service-transport_hello.h
23 * @brief hello API 22 * @brief hello API
@@ -32,15 +31,15 @@
32#include "gnunet_hello_lib.h" 31#include "gnunet_hello_lib.h"
33 32
34 33
35
36/** 34/**
37 * Signature of a function to call whenever our hello changes. 35 * Signature of a function to call whenever our hello changes.
38 * 36 *
39 * @param cls closure 37 * @param cls closure
40 * @param hello updated HELLO 38 * @param hello updated HELLO
41 */ 39 */
42typedef void (*GST_HelloCallback) (void *cls, 40typedef void
43 const struct GNUNET_MessageHeader * hello); 41(*GST_HelloCallback) (void *cls,
42 const struct GNUNET_MessageHeader *hello);
44 43
45 44
46/** 45/**
@@ -48,10 +47,12 @@ typedef void (*GST_HelloCallback) (void *cls,
48 * 47 *
49 * @param friend_only use a friend only hello 48 * @param friend_only use a friend only hello
50 * @param cb function to call whenever our HELLO changes 49 * @param cb function to call whenever our HELLO changes
51 * @param cb_cls closure for cb 50 * @param cb_cls closure for @a cb
52 */ 51 */
53void 52void
54GST_hello_start (int friend_only, GST_HelloCallback cb, void *cb_cls); 53GST_hello_start (int friend_only,
54 GST_HelloCallback cb,
55 void *cb_cls);
55 56
56 57
57/** 58/**
@@ -73,7 +74,7 @@ GST_hello_get (void);
73/** 74/**
74 * Add or remove an address from this peer's HELLO message. 75 * Add or remove an address from this peer's HELLO message.
75 * 76 *
76 * @param addremove GNUNET_YES to add, GNUNET_NO to remove 77 * @param addremove #GNUNET_YES to add, #GNUNET_NO to remove
77 * @param address address to add or remove 78 * @param address address to add or remove
78 */ 79 */
79void 80void
@@ -88,8 +89,8 @@ GST_hello_modify_addresses (int addremove,
88 * @param sig location where to cache PONG signatures for this address [set] 89 * @param sig location where to cache PONG signatures for this address [set]
89 * @param sig_expiration how long until the current 'sig' expires? 90 * @param sig_expiration how long until the current 'sig' expires?
90 * (ZERO if sig was never created) [set] 91 * (ZERO if sig was never created) [set]
91 * @return GNUNET_YES if this is one of our addresses, 92 * @return #GNUNET_YES if this is one of our addresses,
92 * GNUNET_NO if not 93 * #GNUNET_NO if not
93 */ 94 */
94int 95int
95GST_hello_test_address (const struct GNUNET_HELLO_Address *address, 96GST_hello_test_address (const struct GNUNET_HELLO_Address *address,