aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_protocols.h19
-rw-r--r--src/include/gnunet_rps_service.h7
2 files changed, 17 insertions, 9 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index dca1eb5e9..de585c9af 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -2706,17 +2706,17 @@ extern "C"
2706/** 2706/**
2707 * RPS PUSH message to push own ID to another peer 2707 * RPS PUSH message to push own ID to another peer
2708 */ 2708 */
2709#define GNUNET_MESSAGE_TYPE_RPS_PP_PUSH 950 2709#define GNUNET_MESSAGE_TYPE_RPS_PP_PUSH 950
2710 2710
2711/** 2711/**
2712 * RPS PULL REQUEST message to request the local view of another peer 2712 * RPS PULL REQUEST message to request the local view of another peer
2713 */ 2713 */
2714#define GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REQUEST 951 2714#define GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REQUEST 951
2715 2715
2716/** 2716/**
2717 * RPS PULL REPLY message which contains the view of the other peer 2717 * RPS PULL REPLY message which contains the view of the other peer
2718 */ 2718 */
2719#define GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REPLY 952 2719#define GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REPLY 952
2720 2720
2721 2721
2722 2722
@@ -2725,23 +2725,28 @@ extern "C"
2725/** 2725/**
2726 * RPS CS REQUEST Message for the Client to request (a) random peer(s) 2726 * RPS CS REQUEST Message for the Client to request (a) random peer(s)
2727 */ 2727 */
2728#define GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST 953 2728#define GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST 953
2729 2729
2730/** 2730/**
2731 * RPS CS REPLY Message for the Server to send (a) random peer(s) 2731 * RPS CS REPLY Message for the Server to send (a) random peer(s)
2732 */ 2732 */
2733#define GNUNET_MESSAGE_TYPE_RPS_CS_REPLY 954 2733#define GNUNET_MESSAGE_TYPE_RPS_CS_REPLY 954
2734
2735/**
2736 * RPS CS REQUEST CANCEL Message for the Client to cancel a request
2737 */
2738#define GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST_CANCEL 955
2734 2739
2735/** 2740/**
2736 * RPS CS SEED Message for the Client to seed peers into rps 2741 * RPS CS SEED Message for the Client to seed peers into rps
2737 */ 2742 */
2738#define GNUNET_MESSAGE_TYPE_RPS_CS_SEED 955 2743#define GNUNET_MESSAGE_TYPE_RPS_CS_SEED 956
2739 2744
2740#ifdef ENABLE_MALICIOUS 2745#ifdef ENABLE_MALICIOUS
2741/** 2746/**
2742 * Turn RPS service malicious 2747 * Turn RPS service malicious
2743 */ 2748 */
2744#define GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS 956 2749#define GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS 957
2745 2750
2746#endif /* ENABLE_MALICIOUS */ 2751#endif /* ENABLE_MALICIOUS */
2747 2752
diff --git a/src/include/gnunet_rps_service.h b/src/include/gnunet_rps_service.h
index e99072cbf..47b153b14 100644
--- a/src/include/gnunet_rps_service.h
+++ b/src/include/gnunet_rps_service.h
@@ -56,7 +56,9 @@ struct GNUNET_RPS_Request_Handle;
56 * @param num_peers the number of peers returned 56 * @param num_peers the number of peers returned
57 * @param peers array with num_peers PeerIDs 57 * @param peers array with num_peers PeerIDs
58 */ 58 */
59typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls, uint64_t num_peers, const struct GNUNET_PeerIdentity *peers); 59typedef void (* GNUNET_RPS_NotifyReadyCB) (void *cls,
60 uint64_t num_peers,
61 const struct GNUNET_PeerIdentity *peers);
60 62
61/** 63/**
62 * Connect to the rps service 64 * Connect to the rps service
@@ -125,7 +127,8 @@ GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh);
125GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h, 127GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h,
126 uint32_t type, 128 uint32_t type,
127 uint32_t num_peers, 129 uint32_t num_peers,
128 const struct GNUNET_PeerIdentity *ids); 130 const struct GNUNET_PeerIdentity *ids,
131 const struct GNUNET_PeerIdentity *target_peer);
129#endif /* ENABLE_MALICIOUS */ 132#endif /* ENABLE_MALICIOUS */
130 133
131 134