diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_paths.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.h | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/src/cadet/gnunet-service-cadet_paths.h b/src/cadet/gnunet-service-cadet_paths.h index 399f91516..125ea669a 100644 --- a/src/cadet/gnunet-service-cadet_paths.h +++ b/src/cadet/gnunet-service-cadet_paths.h | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | /* | 1 | /* |
3 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
4 | Copyright (C) 2001-2017 GNUnet e.V. | 3 | Copyright (C) 2001-2017 GNUnet e.V. |
@@ -43,10 +42,10 @@ | |||
43 | * @param put_path_length length of the @a put_path | 42 | * @param put_path_length length of the @a put_path |
44 | */ | 43 | */ |
45 | void | 44 | void |
46 | GCPP_try_path_from_dht(const struct GNUNET_PeerIdentity *get_path, | 45 | GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, |
47 | unsigned int get_path_length, | 46 | unsigned int get_path_length, |
48 | const struct GNUNET_PeerIdentity *put_path, | 47 | const struct GNUNET_PeerIdentity *put_path, |
49 | unsigned int put_path_length); | 48 | unsigned int put_path_length); |
50 | 49 | ||
51 | 50 | ||
52 | /** | 51 | /** |
@@ -57,8 +56,8 @@ GCPP_try_path_from_dht(const struct GNUNET_PeerIdentity *get_path, | |||
57 | * @return corresponding path object | 56 | * @return corresponding path object |
58 | */ | 57 | */ |
59 | struct CadetPeerPath * | 58 | struct CadetPeerPath * |
60 | GCPP_get_path_from_route(unsigned int path_length, | 59 | GCPP_get_path_from_route (unsigned int path_length, |
61 | const struct GNUNET_PeerIdentity *pids); | 60 | const struct GNUNET_PeerIdentity *pids); |
62 | 61 | ||
63 | 62 | ||
64 | /** | 63 | /** |
@@ -69,7 +68,7 @@ GCPP_get_path_from_route(unsigned int path_length, | |||
69 | * @return number of peers on the path | 68 | * @return number of peers on the path |
70 | */ | 69 | */ |
71 | unsigned int | 70 | unsigned int |
72 | GCPP_get_length(struct CadetPeerPath *path); | 71 | GCPP_get_length (struct CadetPeerPath *path); |
73 | 72 | ||
74 | 73 | ||
75 | /** | 74 | /** |
@@ -83,9 +82,9 @@ GCPP_get_length(struct CadetPeerPath *path); | |||
83 | * otherwise connection from us to @a destination via @a path | 82 | * otherwise connection from us to @a destination via @a path |
84 | */ | 83 | */ |
85 | struct CadetConnection * | 84 | struct CadetConnection * |
86 | GCPP_get_connection(struct CadetPeerPath *path, | 85 | GCPP_get_connection (struct CadetPeerPath *path, |
87 | struct CadetPeer *destination, | 86 | struct CadetPeer *destination, |
88 | unsigned int off); | 87 | unsigned int off); |
89 | 88 | ||
90 | 89 | ||
91 | /** | 90 | /** |
@@ -97,9 +96,9 @@ GCPP_get_connection(struct CadetPeerPath *path, | |||
97 | * @param cc the connection to remember | 96 | * @param cc the connection to remember |
98 | */ | 97 | */ |
99 | void | 98 | void |
100 | GCPP_add_connection(struct CadetPeerPath *path, | 99 | GCPP_add_connection (struct CadetPeerPath *path, |
101 | unsigned int off, | 100 | unsigned int off, |
102 | struct CadetConnection *cc); | 101 | struct CadetConnection *cc); |
103 | 102 | ||
104 | 103 | ||
105 | /** | 104 | /** |
@@ -111,9 +110,9 @@ GCPP_add_connection(struct CadetPeerPath *path, | |||
111 | * @param cc the connection to forget | 110 | * @param cc the connection to forget |
112 | */ | 111 | */ |
113 | void | 112 | void |
114 | GCPP_del_connection(struct CadetPeerPath *path, | 113 | GCPP_del_connection (struct CadetPeerPath *path, |
115 | unsigned int off, | 114 | unsigned int off, |
116 | struct CadetConnection *cc); | 115 | struct CadetConnection *cc); |
117 | 116 | ||
118 | 117 | ||
119 | /** | 118 | /** |
@@ -124,8 +123,8 @@ GCPP_del_connection(struct CadetPeerPath *path, | |||
124 | * @return offset of @a cp on @a path, or UINT_MAX if not found | 123 | * @return offset of @a cp on @a path, or UINT_MAX if not found |
125 | */ | 124 | */ |
126 | unsigned int | 125 | unsigned int |
127 | GCPP_find_peer(struct CadetPeerPath *path, | 126 | GCPP_find_peer (struct CadetPeerPath *path, |
128 | struct CadetPeer *cp); | 127 | struct CadetPeer *cp); |
129 | 128 | ||
130 | 129 | ||
131 | /** | 130 | /** |
@@ -142,7 +141,7 @@ GCPP_find_peer(struct CadetPeerPath *path, | |||
142 | * @return desirability of the path, larger is more desirable | 141 | * @return desirability of the path, larger is more desirable |
143 | */ | 142 | */ |
144 | GNUNET_CONTAINER_HeapCostType | 143 | GNUNET_CONTAINER_HeapCostType |
145 | GCPP_get_desirability(const struct CadetPeerPath *path); | 144 | GCPP_get_desirability (const struct CadetPeerPath *path); |
146 | 145 | ||
147 | 146 | ||
148 | /** | 147 | /** |
@@ -154,7 +153,7 @@ GCPP_get_desirability(const struct CadetPeerPath *path); | |||
154 | * @param path the path that is being released | 153 | * @param path the path that is being released |
155 | */ | 154 | */ |
156 | void | 155 | void |
157 | GCPP_release(struct CadetPeerPath *path); | 156 | GCPP_release (struct CadetPeerPath *path); |
158 | 157 | ||
159 | 158 | ||
160 | /** | 159 | /** |
@@ -165,8 +164,8 @@ GCPP_release(struct CadetPeerPath *path); | |||
165 | * @return peer at offset @a off | 164 | * @return peer at offset @a off |
166 | */ | 165 | */ |
167 | struct CadetPeer * | 166 | struct CadetPeer * |
168 | GCPP_get_peer_at_offset(struct CadetPeerPath *path, | 167 | GCPP_get_peer_at_offset (struct CadetPeerPath *path, |
169 | unsigned int off); | 168 | unsigned int off); |
170 | 169 | ||
171 | 170 | ||
172 | /** | 171 | /** |
@@ -176,7 +175,7 @@ GCPP_get_peer_at_offset(struct CadetPeerPath *path, | |||
176 | * @return string, statically allocated | 175 | * @return string, statically allocated |
177 | */ | 176 | */ |
178 | const char * | 177 | const char * |
179 | GCPP_2s(struct CadetPeerPath *p); | 178 | GCPP_2s (struct CadetPeerPath *p); |
180 | 179 | ||
181 | 180 | ||
182 | #endif | 181 | #endif |