diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-19 01:08:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-19 01:08:03 +0000 |
commit | f735158d94616b75ade351a3cce226483b8af55e (patch) | |
tree | 1cd9732b99cc6437fec7751b8f3c9ef28f0371c9 /src/transport/gnunet-service-transport_hello.h | |
parent | d769049a7db56037ea4aff3d9d8a8d42a373ec9c (diff) | |
download | gnunet-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.h | 19 |
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 | */ |
42 | typedef void (*GST_HelloCallback) (void *cls, | 40 | typedef 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 | */ |
53 | void | 52 | void |
54 | GST_hello_start (int friend_only, GST_HelloCallback cb, void *cb_cls); | 53 | GST_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 | */ |
79 | void | 80 | void |
@@ -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 | */ |
94 | int | 95 | int |
95 | GST_hello_test_address (const struct GNUNET_HELLO_Address *address, | 96 | GST_hello_test_address (const struct GNUNET_HELLO_Address *address, |