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/cadet/gnunet-service-cadet_paths.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_paths.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/cadet/gnunet-service-cadet_paths.h b/src/cadet/gnunet-service-cadet_paths.h index ca2c79ca4..399f91516 100644 --- a/src/cadet/gnunet-service-cadet_paths.h +++ b/src/cadet/gnunet-service-cadet_paths.h | |||
@@ -12,12 +12,12 @@ | |||
12 | WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | Affero General Public License for more details. | 14 | Affero General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU Affero General Public License | 16 | You should have received a copy of the GNU Affero General Public License |
17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 | ||
19 | SPDX-License-Identifier: AGPL3.0-or-later | 19 | SPDX-License-Identifier: AGPL3.0-or-later |
20 | */ | 20 | */ |
21 | 21 | ||
22 | /** | 22 | /** |
23 | * @file cadet/gnunet-service-cadet-new_paths.h | 23 | * @file cadet/gnunet-service-cadet-new_paths.h |
@@ -43,10 +43,10 @@ | |||
43 | * @param put_path_length length of the @a put_path | 43 | * @param put_path_length length of the @a put_path |
44 | */ | 44 | */ |
45 | void | 45 | void |
46 | GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | 46 | GCPP_try_path_from_dht(const struct GNUNET_PeerIdentity *get_path, |
47 | unsigned int get_path_length, | 47 | unsigned int get_path_length, |
48 | const struct GNUNET_PeerIdentity *put_path, | 48 | const struct GNUNET_PeerIdentity *put_path, |
49 | unsigned int put_path_length); | 49 | unsigned int put_path_length); |
50 | 50 | ||
51 | 51 | ||
52 | /** | 52 | /** |
@@ -57,8 +57,8 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
57 | * @return corresponding path object | 57 | * @return corresponding path object |
58 | */ | 58 | */ |
59 | struct CadetPeerPath * | 59 | struct CadetPeerPath * |
60 | GCPP_get_path_from_route (unsigned int path_length, | 60 | GCPP_get_path_from_route(unsigned int path_length, |
61 | const struct GNUNET_PeerIdentity *pids); | 61 | const struct GNUNET_PeerIdentity *pids); |
62 | 62 | ||
63 | 63 | ||
64 | /** | 64 | /** |
@@ -69,7 +69,7 @@ GCPP_get_path_from_route (unsigned int path_length, | |||
69 | * @return number of peers on the path | 69 | * @return number of peers on the path |
70 | */ | 70 | */ |
71 | unsigned int | 71 | unsigned int |
72 | GCPP_get_length (struct CadetPeerPath *path); | 72 | GCPP_get_length(struct CadetPeerPath *path); |
73 | 73 | ||
74 | 74 | ||
75 | /** | 75 | /** |
@@ -83,9 +83,9 @@ GCPP_get_length (struct CadetPeerPath *path); | |||
83 | * otherwise connection from us to @a destination via @a path | 83 | * otherwise connection from us to @a destination via @a path |
84 | */ | 84 | */ |
85 | struct CadetConnection * | 85 | struct CadetConnection * |
86 | GCPP_get_connection (struct CadetPeerPath *path, | 86 | GCPP_get_connection(struct CadetPeerPath *path, |
87 | struct CadetPeer *destination, | 87 | struct CadetPeer *destination, |
88 | unsigned int off); | 88 | unsigned int off); |
89 | 89 | ||
90 | 90 | ||
91 | /** | 91 | /** |
@@ -97,9 +97,9 @@ GCPP_get_connection (struct CadetPeerPath *path, | |||
97 | * @param cc the connection to remember | 97 | * @param cc the connection to remember |
98 | */ | 98 | */ |
99 | void | 99 | void |
100 | GCPP_add_connection (struct CadetPeerPath *path, | 100 | GCPP_add_connection(struct CadetPeerPath *path, |
101 | unsigned int off, | 101 | unsigned int off, |
102 | struct CadetConnection *cc); | 102 | struct CadetConnection *cc); |
103 | 103 | ||
104 | 104 | ||
105 | /** | 105 | /** |
@@ -111,9 +111,9 @@ GCPP_add_connection (struct CadetPeerPath *path, | |||
111 | * @param cc the connection to forget | 111 | * @param cc the connection to forget |
112 | */ | 112 | */ |
113 | void | 113 | void |
114 | GCPP_del_connection (struct CadetPeerPath *path, | 114 | GCPP_del_connection(struct CadetPeerPath *path, |
115 | unsigned int off, | 115 | unsigned int off, |
116 | struct CadetConnection *cc); | 116 | struct CadetConnection *cc); |
117 | 117 | ||
118 | 118 | ||
119 | /** | 119 | /** |
@@ -124,8 +124,8 @@ GCPP_del_connection (struct CadetPeerPath *path, | |||
124 | * @return offset of @a cp on @a path, or UINT_MAX if not found | 124 | * @return offset of @a cp on @a path, or UINT_MAX if not found |
125 | */ | 125 | */ |
126 | unsigned int | 126 | unsigned int |
127 | GCPP_find_peer (struct CadetPeerPath *path, | 127 | GCPP_find_peer(struct CadetPeerPath *path, |
128 | struct CadetPeer *cp); | 128 | struct CadetPeer *cp); |
129 | 129 | ||
130 | 130 | ||
131 | /** | 131 | /** |
@@ -142,7 +142,7 @@ GCPP_find_peer (struct CadetPeerPath *path, | |||
142 | * @return desirability of the path, larger is more desirable | 142 | * @return desirability of the path, larger is more desirable |
143 | */ | 143 | */ |
144 | GNUNET_CONTAINER_HeapCostType | 144 | GNUNET_CONTAINER_HeapCostType |
145 | GCPP_get_desirability (const struct CadetPeerPath *path); | 145 | GCPP_get_desirability(const struct CadetPeerPath *path); |
146 | 146 | ||
147 | 147 | ||
148 | /** | 148 | /** |
@@ -154,7 +154,7 @@ GCPP_get_desirability (const struct CadetPeerPath *path); | |||
154 | * @param path the path that is being released | 154 | * @param path the path that is being released |
155 | */ | 155 | */ |
156 | void | 156 | void |
157 | GCPP_release (struct CadetPeerPath *path); | 157 | GCPP_release(struct CadetPeerPath *path); |
158 | 158 | ||
159 | 159 | ||
160 | /** | 160 | /** |
@@ -165,8 +165,8 @@ GCPP_release (struct CadetPeerPath *path); | |||
165 | * @return peer at offset @a off | 165 | * @return peer at offset @a off |
166 | */ | 166 | */ |
167 | struct CadetPeer * | 167 | struct CadetPeer * |
168 | GCPP_get_peer_at_offset (struct CadetPeerPath *path, | 168 | GCPP_get_peer_at_offset(struct CadetPeerPath *path, |
169 | unsigned int off); | 169 | unsigned int off); |
170 | 170 | ||
171 | 171 | ||
172 | /** | 172 | /** |
@@ -176,7 +176,7 @@ GCPP_get_peer_at_offset (struct CadetPeerPath *path, | |||
176 | * @return string, statically allocated | 176 | * @return string, statically allocated |
177 | */ | 177 | */ |
178 | const char * | 178 | const char * |
179 | GCPP_2s (struct CadetPeerPath *p); | 179 | GCPP_2s(struct CadetPeerPath *p); |
180 | 180 | ||
181 | 181 | ||
182 | #endif | 182 | #endif |