diff options
Diffstat (limited to 'src/rps/gnunet-service-rps_view.h')
-rw-r--r-- | src/rps/gnunet-service-rps_view.h | 30 |
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 | */ |
37 | struct View * | 37 | struct View * |
38 | View_create(unsigned int len); | 38 | View_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 | */ |
49 | void | 49 | void |
50 | View_change_len(struct View *view, | 50 | View_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 | */ |
58 | const struct GNUNET_PeerIdentity * | 58 | const struct GNUNET_PeerIdentity * |
59 | View_get_as_array(const struct View *view); | 59 | View_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 | */ |
68 | unsigned int | 68 | unsigned int |
69 | View_size(const struct View *view); | 69 | View_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 | */ |
81 | int | 81 | int |
82 | View_put(struct View *view, | 82 | View_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 | */ |
95 | int | 95 | int |
96 | View_contains_peer(const struct View *view, | 96 | View_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 | */ |
109 | int | 109 | int |
110 | View_remove_peer(struct View *view, | 110 | View_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 | */ |
123 | const struct GNUNET_PeerIdentity * | 123 | const struct GNUNET_PeerIdentity * |
124 | View_get_peer_by_index(const struct View *view, | 124 | View_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 | */ |
133 | void | 133 | void |
134 | View_clear(struct View *view); | 134 | View_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 | */ |
142 | void | 142 | void |
143 | View_destroy(struct View *view); | 143 | View_destroy (struct View *view); |
144 | 144 | ||
145 | /* end of gnunet-service-rps_view.h */ | 145 | /* end of gnunet-service-rps_view.h */ |