diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/rps/gnunet-service-rps_custommap.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/rps/gnunet-service-rps_custommap.h')
-rw-r--r-- | src/rps/gnunet-service-rps_custommap.h | 32 |
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 | */ |
63 | struct CustomPeerMap * | 63 | struct CustomPeerMap * |
64 | CustomPeerMap_create (unsigned int len); | 64 | CustomPeerMap_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 | */ |
73 | unsigned int | 73 | unsigned int |
74 | CustomPeerMap_size (const struct CustomPeerMap *c_peer_map); | 74 | CustomPeerMap_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 | */ |
85 | int | 85 | int |
86 | CustomPeerMap_put (const struct CustomPeerMap *c_peer_map, | 86 | CustomPeerMap_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 | */ |
98 | int | 98 | int |
99 | CustomPeerMap_contains_peer (const struct CustomPeerMap *c_peer_map, | 99 | CustomPeerMap_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 | */ |
111 | int | 111 | int |
112 | CustomPeerMap_remove_peer (const struct CustomPeerMap *c_peer_map, | 112 | CustomPeerMap_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 | */ |
124 | struct GNUNET_PeerIdentity * | 124 | struct GNUNET_PeerIdentity * |
125 | CustomPeerMap_get_peer_by_index (const struct CustomPeerMap *c_peer_map, | 125 | CustomPeerMap_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 | */ |
137 | int | 137 | int |
138 | CustomPeerMap_remove_peer_by_index (const struct CustomPeerMap *c_peer_map, | 138 | CustomPeerMap_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 | */ |
148 | void | 148 | void |
149 | CustomPeerMap_clear (const struct CustomPeerMap *c_peer_map); | 149 | CustomPeerMap_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 | */ |
156 | void | 156 | void |
157 | CustomPeerMap_destroy (struct CustomPeerMap *c_peer_map); | 157 | CustomPeerMap_destroy(struct CustomPeerMap *c_peer_map); |
158 | 158 | ||
159 | /* end of gnunet-service-rps_custommap.h */ | 159 | /* end of gnunet-service-rps_custommap.h */ |