aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps_view.h')
-rw-r--r--src/rps/gnunet-service-rps_view.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/rps/gnunet-service-rps_view.h b/src/rps/gnunet-service-rps_view.h
index 0ceed5432..4d42272c1 100644
--- a/src/rps/gnunet-service-rps_view.h
+++ b/src/rps/gnunet-service-rps_view.h
@@ -35,7 +35,7 @@ struct View;
35 * @return The newly created view 35 * @return The newly created view
36 */ 36 */
37struct View * 37struct View *
38View_create(unsigned int len); 38View_create (unsigned int len);
39 39
40 40
41/** 41/**
@@ -47,8 +47,8 @@ View_create(unsigned int len);
47 * @param len the (maximum) length for the view 47 * @param len the (maximum) length for the view
48 */ 48 */
49void 49void
50View_change_len(struct View *view, 50View_change_len (struct View *view,
51 unsigned int len); 51 unsigned int len);
52 52
53/** 53/**
54 * Get the view as an array 54 * Get the view as an array
@@ -56,7 +56,7 @@ View_change_len(struct View *view,
56 * @return the view in array representation 56 * @return the view in array representation
57 */ 57 */
58const struct GNUNET_PeerIdentity * 58const struct GNUNET_PeerIdentity *
59View_get_as_array(const struct View *view); 59View_get_as_array (const struct View *view);
60 60
61 61
62/** 62/**
@@ -66,7 +66,7 @@ View_get_as_array(const struct View *view);
66 * @return current number of actually contained peers 66 * @return current number of actually contained peers
67 */ 67 */
68unsigned int 68unsigned int
69View_size(const struct View *view); 69View_size (const struct View *view);
70 70
71 71
72/** 72/**
@@ -79,8 +79,8 @@ View_size(const struct View *view);
79 * GNUNET_NO if peer was not inserted 79 * GNUNET_NO if peer was not inserted
80 */ 80 */
81int 81int
82View_put(struct View *view, 82View_put (struct View *view,
83 const struct GNUNET_PeerIdentity *peer); 83 const struct GNUNET_PeerIdentity *peer);
84 84
85 85
86/** 86/**
@@ -93,8 +93,8 @@ View_put(struct View *view,
93 * GNUNET_NO otherwise 93 * GNUNET_NO otherwise
94 */ 94 */
95int 95int
96View_contains_peer(const struct View *view, 96View_contains_peer (const struct View *view,
97 const struct GNUNET_PeerIdentity *peer); 97 const struct GNUNET_PeerIdentity *peer);
98 98
99 99
100/** 100/**
@@ -107,8 +107,8 @@ View_contains_peer(const struct View *view,
107 * GNUNET_NO if view does not contain peer 107 * GNUNET_NO if view does not contain peer
108 */ 108 */
109int 109int
110View_remove_peer(struct View *view, 110View_remove_peer (struct View *view,
111 const struct GNUNET_PeerIdentity *peer); 111 const struct GNUNET_PeerIdentity *peer);
112 112
113 113
114/** 114/**
@@ -121,8 +121,8 @@ View_remove_peer(struct View *view,
121 * NULL if this index is not known 121 * NULL if this index is not known
122 */ 122 */
123const struct GNUNET_PeerIdentity * 123const struct GNUNET_PeerIdentity *
124View_get_peer_by_index(const struct View *view, 124View_get_peer_by_index (const struct View *view,
125 uint32_t index); 125 uint32_t index);
126 126
127 127
128/** 128/**
@@ -131,7 +131,7 @@ View_get_peer_by_index(const struct View *view,
131 * @param view The view to clear 131 * @param view The view to clear
132 */ 132 */
133void 133void
134View_clear(struct View *view); 134View_clear (struct View *view);
135 135
136 136
137/** 137/**
@@ -140,6 +140,6 @@ View_clear(struct View *view);
140 * @param view the view to destroy 140 * @param view the view to destroy
141 */ 141 */
142void 142void
143View_destroy(struct View *view); 143View_destroy (struct View *view);
144 144
145/* end of gnunet-service-rps_view.h */ 145/* end of gnunet-service-rps_view.h */