diff options
Diffstat (limited to 'src/include/gnunet_rps_service.h')
-rw-r--r-- | src/include/gnunet_rps_service.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/include/gnunet_rps_service.h b/src/include/gnunet_rps_service.h index eda012076..22e944d0f 100644 --- a/src/include/gnunet_rps_service.h +++ b/src/include/gnunet_rps_service.h | |||
@@ -63,24 +63,6 @@ typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls, | |||
63 | uint64_t num_peers, | 63 | uint64_t num_peers, |
64 | const struct GNUNET_PeerIdentity *peers); | 64 | const struct GNUNET_PeerIdentity *peers); |
65 | 65 | ||
66 | /** | ||
67 | * Callback called when view was updated | ||
68 | * | ||
69 | * @param num_peers the number of peers returned | ||
70 | * @param peers array with num_peers PeerIDs | ||
71 | */ | ||
72 | typedef void (* GNUNET_RPS_ViewUpdateCB) (void *cls, | ||
73 | uint64_t num_peers, | ||
74 | const struct GNUNET_PeerIdentity *peers); | ||
75 | |||
76 | /** | ||
77 | * Callback called when a peer from the biased stream was received | ||
78 | * | ||
79 | * @param peer The received peer | ||
80 | */ | ||
81 | typedef void (* GNUNET_RPS_StreamInputCB) (void *cls, | ||
82 | uint64_t num_peers, | ||
83 | const struct GNUNET_PeerIdentity *peer); | ||
84 | 66 | ||
85 | /** | 67 | /** |
86 | * Connect to the rps service | 68 | * Connect to the rps service |
@@ -167,7 +149,7 @@ GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h, | |||
167 | void | 149 | void |
168 | GNUNET_RPS_view_request (struct GNUNET_RPS_Handle *rps_handle, | 150 | GNUNET_RPS_view_request (struct GNUNET_RPS_Handle *rps_handle, |
169 | uint32_t num_updates, | 151 | uint32_t num_updates, |
170 | GNUNET_RPS_ViewUpdateCB view_update_cb, | 152 | GNUNET_RPS_NotifyReadyCB view_update_cb, |
171 | void *cls); | 153 | void *cls); |
172 | 154 | ||
173 | 155 | ||
@@ -183,7 +165,7 @@ GNUNET_RPS_view_request (struct GNUNET_RPS_Handle *rps_handle, | |||
183 | void | 165 | void |
184 | GNUNET_RPS_stream_request (struct GNUNET_RPS_Handle *rps_handle, | 166 | GNUNET_RPS_stream_request (struct GNUNET_RPS_Handle *rps_handle, |
185 | uint32_t num_updates, | 167 | uint32_t num_updates, |
186 | GNUNET_RPS_StreamInputCB stream_input_cb, | 168 | GNUNET_RPS_NotifyReadyCB stream_input_cb, |
187 | void *cls); | 169 | void *cls); |
188 | 170 | ||
189 | 171 | ||