aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_custommap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps_custommap.h')
-rw-r--r--src/rps/gnunet-service-rps_custommap.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/rps/gnunet-service-rps_custommap.h b/src/rps/gnunet-service-rps_custommap.h
index 53d256487..210ab56c6 100644
--- a/src/rps/gnunet-service-rps_custommap.h
+++ b/src/rps/gnunet-service-rps_custommap.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @file rps/gnunet-service-rps_custommap.h 22 * @file rps/gnunet-service-rps_custommap.h
@@ -61,7 +61,7 @@ struct CustomPeerMap;
61 * @return the newly created custom peer map 61 * @return the newly created custom peer map
62 */ 62 */
63struct CustomPeerMap * 63struct CustomPeerMap *
64CustomPeerMap_create (unsigned int len); 64CustomPeerMap_create(unsigned int len);
65 65
66/** 66/**
67 * Get the size of the custom peer map 67 * Get the size of the custom peer map
@@ -71,7 +71,7 @@ CustomPeerMap_create (unsigned int len);
71 * @return size of the map 71 * @return size of the map
72 */ 72 */
73unsigned int 73unsigned int
74CustomPeerMap_size (const struct CustomPeerMap *c_peer_map); 74CustomPeerMap_size(const struct CustomPeerMap *c_peer_map);
75 75
76/** 76/**
77 * Insert peer into the custom peer map 77 * Insert peer into the custom peer map
@@ -83,8 +83,8 @@ CustomPeerMap_size (const struct CustomPeerMap *c_peer_map);
83 * GNUNET_NO if map did contain peer previously 83 * GNUNET_NO if map did contain peer previously
84 */ 84 */
85int 85int
86CustomPeerMap_put (const struct CustomPeerMap *c_peer_map, 86CustomPeerMap_put(const struct CustomPeerMap *c_peer_map,
87 const struct GNUNET_PeerIdentity *peer); 87 const struct GNUNET_PeerIdentity *peer);
88 88
89/** 89/**
90 * Check whether custom peer map contains a peer 90 * Check whether custom peer map contains a peer
@@ -96,8 +96,8 @@ CustomPeerMap_put (const struct CustomPeerMap *c_peer_map,
96 * GNUNET_NO otherwise 96 * GNUNET_NO otherwise
97 */ 97 */
98int 98int
99CustomPeerMap_contains_peer (const struct CustomPeerMap *c_peer_map, 99CustomPeerMap_contains_peer(const struct CustomPeerMap *c_peer_map,
100 const struct GNUNET_PeerIdentity *peer); 100 const struct GNUNET_PeerIdentity *peer);
101 101
102/** 102/**
103 * Remove peer from custom peer map 103 * Remove peer from custom peer map
@@ -109,8 +109,8 @@ CustomPeerMap_contains_peer (const struct CustomPeerMap *c_peer_map,
109 * GNUNET_NO if map does not contain peer 109 * GNUNET_NO if map does not contain peer
110 */ 110 */
111int 111int
112CustomPeerMap_remove_peer (const struct CustomPeerMap *c_peer_map, 112CustomPeerMap_remove_peer(const struct CustomPeerMap *c_peer_map,
113 const struct GNUNET_PeerIdentity *peer); 113 const struct GNUNET_PeerIdentity *peer);
114 114
115/** 115/**
116 * Get a peer by index 116 * Get a peer by index
@@ -122,8 +122,8 @@ CustomPeerMap_remove_peer (const struct CustomPeerMap *c_peer_map,
122 * if this index is not known, return NULL 122 * if this index is not known, return NULL
123 */ 123 */
124struct GNUNET_PeerIdentity * 124struct GNUNET_PeerIdentity *
125CustomPeerMap_get_peer_by_index (const struct CustomPeerMap *c_peer_map, 125CustomPeerMap_get_peer_by_index(const struct CustomPeerMap *c_peer_map,
126 uint32_t index); 126 uint32_t index);
127 127
128/** 128/**
129 * Remove peer from custom peer map by index 129 * Remove peer from custom peer map by index
@@ -135,8 +135,8 @@ CustomPeerMap_get_peer_by_index (const struct CustomPeerMap *c_peer_map,
135 * GNUNET_NO if map does not contain (index of) peer 135 * GNUNET_NO if map does not contain (index of) peer
136 */ 136 */
137int 137int
138CustomPeerMap_remove_peer_by_index (const struct CustomPeerMap *c_peer_map, 138CustomPeerMap_remove_peer_by_index(const struct CustomPeerMap *c_peer_map,
139 uint32_t index); 139 uint32_t index);
140 140
141/** 141/**
142 * Clear the custom peer map 142 * Clear the custom peer map
@@ -146,7 +146,7 @@ CustomPeerMap_remove_peer_by_index (const struct CustomPeerMap *c_peer_map,
146 * @return size of the map 146 * @return size of the map
147 */ 147 */
148void 148void
149CustomPeerMap_clear (const struct CustomPeerMap *c_peer_map); 149CustomPeerMap_clear(const struct CustomPeerMap *c_peer_map);
150 150
151/** 151/**
152 * Destroy peermap. 152 * Destroy peermap.
@@ -154,6 +154,6 @@ CustomPeerMap_clear (const struct CustomPeerMap *c_peer_map);
154 * @param c_peer_map the map to destroy 154 * @param c_peer_map the map to destroy
155 */ 155 */
156void 156void
157CustomPeerMap_destroy (struct CustomPeerMap *c_peer_map); 157CustomPeerMap_destroy(struct CustomPeerMap *c_peer_map);
158 158
159/* end of gnunet-service-rps_custommap.h */ 159/* end of gnunet-service-rps_custommap.h */