aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_paths.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_paths.h')
-rw-r--r--src/cadet/gnunet-service-cadet_paths.h50
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 */
45void 45void
46GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, 46GCPP_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 */
59struct CadetPeerPath * 59struct CadetPeerPath *
60GCPP_get_path_from_route (unsigned int path_length, 60GCPP_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 */
71unsigned int 71unsigned int
72GCPP_get_length (struct CadetPeerPath *path); 72GCPP_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 */
85struct CadetConnection * 85struct CadetConnection *
86GCPP_get_connection (struct CadetPeerPath *path, 86GCPP_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 */
99void 99void
100GCPP_add_connection (struct CadetPeerPath *path, 100GCPP_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 */
113void 113void
114GCPP_del_connection (struct CadetPeerPath *path, 114GCPP_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 */
126unsigned int 126unsigned int
127GCPP_find_peer (struct CadetPeerPath *path, 127GCPP_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 */
144GNUNET_CONTAINER_HeapCostType 144GNUNET_CONTAINER_HeapCostType
145GCPP_get_desirability (const struct CadetPeerPath *path); 145GCPP_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 */
156void 156void
157GCPP_release (struct CadetPeerPath *path); 157GCPP_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 */
167struct CadetPeer * 167struct CadetPeer *
168GCPP_get_peer_at_offset (struct CadetPeerPath *path, 168GCPP_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 */
178const char * 178const char *
179GCPP_2s (struct CadetPeerPath *p); 179GCPP_2s(struct CadetPeerPath *p);
180 180
181 181
182#endif 182#endif