diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
commit | 502af2167f7c218366666ca4944bd7cc54b5b19a (patch) | |
tree | a91fec5cc9769d260640bd91c6633cb9cf395524 /src/transport/gnunet-service-transport_validation.h | |
parent | 03af5a603b7cc53432249d5854cd412aa90dde0d (diff) | |
download | gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.tar.gz gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.zip |
indentation
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.h')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h index 73d346678..bdf8bd9ed 100644 --- a/src/transport/gnunet-service-transport_validation.h +++ b/src/transport/gnunet-service-transport_validation.h | |||
@@ -34,15 +34,13 @@ | |||
34 | /** | 34 | /** |
35 | * Start the validation subsystem. | 35 | * Start the validation subsystem. |
36 | */ | 36 | */ |
37 | void | 37 | void GST_validation_start (void); |
38 | GST_validation_start (void); | ||
39 | 38 | ||
40 | 39 | ||
41 | /** | 40 | /** |
42 | * Stop the validation subsystem. | 41 | * Stop the validation subsystem. |
43 | */ | 42 | */ |
44 | void | 43 | void GST_validation_stop (void); |
45 | GST_validation_stop (void); | ||
46 | 44 | ||
47 | 45 | ||
48 | /** | 46 | /** |
@@ -58,11 +56,11 @@ GST_validation_stop (void); | |||
58 | */ | 56 | */ |
59 | void | 57 | void |
60 | GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, | 58 | GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, |
61 | const struct GNUNET_MessageHeader *hdr, | 59 | const struct GNUNET_MessageHeader *hdr, |
62 | const char *plugin_name, | 60 | const char *plugin_name, |
63 | struct Session *session, | 61 | struct Session *session, |
64 | const void *sender_address, | 62 | const void *sender_address, |
65 | size_t sender_address_len); | 63 | size_t sender_address_len); |
66 | 64 | ||
67 | 65 | ||
68 | /** | 66 | /** |
@@ -74,7 +72,7 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, | |||
74 | */ | 72 | */ |
75 | void | 73 | void |
76 | GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, | 74 | GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, |
77 | const struct GNUNET_MessageHeader *hdr); | 75 | const struct GNUNET_MessageHeader *hdr); |
78 | 76 | ||
79 | 77 | ||
80 | /** | 78 | /** |
@@ -83,8 +81,7 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, | |||
83 | * | 81 | * |
84 | * @param hello the HELLO we received | 82 | * @param hello the HELLO we received |
85 | */ | 83 | */ |
86 | void | 84 | void GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); |
87 | GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); | ||
88 | 85 | ||
89 | 86 | ||
90 | /** | 87 | /** |
@@ -103,14 +100,19 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); | |||
103 | * @param plugin_address binary address | 100 | * @param plugin_address binary address |
104 | * @param plugin_address_len length of address | 101 | * @param plugin_address_len length of address |
105 | */ | 102 | */ |
106 | typedef void (*GST_ValidationAddressCallback)(void *cls, | 103 | typedef void (*GST_ValidationAddressCallback) (void *cls, |
107 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *public_key, | 104 | const struct |
108 | const struct GNUNET_PeerIdentity *target, | 105 | GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded |
109 | struct GNUNET_TIME_Absolute valid_until, | 106 | * public_key, |
110 | struct GNUNET_TIME_Absolute validation_block, | 107 | const struct GNUNET_PeerIdentity |
111 | const char *plugin_name, | 108 | * target, |
112 | const void *plugin_address, | 109 | struct GNUNET_TIME_Absolute |
113 | size_t plugin_address_len); | 110 | valid_until, |
111 | struct GNUNET_TIME_Absolute | ||
112 | validation_block, | ||
113 | const char *plugin_name, | ||
114 | const void *plugin_address, | ||
115 | size_t plugin_address_len); | ||
114 | 116 | ||
115 | 117 | ||
116 | /** | 118 | /** |
@@ -124,8 +126,7 @@ typedef void (*GST_ValidationAddressCallback)(void *cls, | |||
124 | */ | 126 | */ |
125 | void | 127 | void |
126 | GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target, | 128 | GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target, |
127 | GST_ValidationAddressCallback cb, | 129 | GST_ValidationAddressCallback cb, void *cb_cls); |
128 | void *cb_cls); | ||
129 | 130 | ||
130 | 131 | ||
131 | #endif | 132 | #endif |