diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-04-11 11:49:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-04-11 11:49:51 +0000 |
commit | 24712c94e185b72c30da25ea1b3a1784bde0defa (patch) | |
tree | 1ca399a023e0cdf48dbf9b411bb4b245081a1100 /src/core/gnunet-service-core_kx.h | |
parent | a61a4e0ffd7d563f3ae4d758f06a894edee71f58 (diff) | |
download | gnunet-24712c94e185b72c30da25ea1b3a1784bde0defa.tar.gz gnunet-24712c94e185b72c30da25ea1b3a1784bde0defa.zip |
towards fixing #3363: replacing old iteration API with new monitoring API for core (needs testing, gnunet-core incomplete)
Diffstat (limited to 'src/core/gnunet-service-core_kx.h')
-rw-r--r-- | src/core/gnunet-service-core_kx.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/core/gnunet-service-core_kx.h b/src/core/gnunet-service-core_kx.h index c6b346ec3..abe6c3ccd 100644 --- a/src/core/gnunet-service-core_kx.h +++ b/src/core/gnunet-service-core_kx.h | |||
@@ -118,10 +118,12 @@ GSC_KX_stop (struct GSC_KeyExchangeInfo *kx); | |||
118 | * Initialize KX subsystem. | 118 | * Initialize KX subsystem. |
119 | * | 119 | * |
120 | * @param pk private key to use for the peer | 120 | * @param pk private key to use for the peer |
121 | * @param server the server of the CORE service | ||
121 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure | 122 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure |
122 | */ | 123 | */ |
123 | int | 124 | int |
124 | GSC_KX_init (struct GNUNET_CRYPTO_EddsaPrivateKey *pk); | 125 | GSC_KX_init (struct GNUNET_CRYPTO_EddsaPrivateKey *pk, |
126 | struct GNUNET_SERVER_Handle *server); | ||
125 | 127 | ||
126 | 128 | ||
127 | /** | 129 | /** |
@@ -130,5 +132,22 @@ GSC_KX_init (struct GNUNET_CRYPTO_EddsaPrivateKey *pk); | |||
130 | void | 132 | void |
131 | GSC_KX_done (void); | 133 | GSC_KX_done (void); |
132 | 134 | ||
135 | |||
136 | /** | ||
137 | * Handle #GNUNET_MESSAGE_TYPE_CORE_MONITOR_PEERS request. For this | ||
138 | * request type, the client does not have to have transmitted an INIT | ||
139 | * request. All current peers are returned, regardless of which | ||
140 | * message types they accept. | ||
141 | * | ||
142 | * @param cls unused | ||
143 | * @param client client sending the iteration request | ||
144 | * @param message iteration request message | ||
145 | */ | ||
146 | void | ||
147 | GSC_KX_handle_client_monitor_peers (void *cls, | ||
148 | struct GNUNET_SERVER_Client *client, | ||
149 | const struct GNUNET_MessageHeader *message); | ||
150 | |||
151 | |||
133 | #endif | 152 | #endif |
134 | /* end of gnunet-service-core_kx.h */ | 153 | /* end of gnunet-service-core_kx.h */ |