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.h47
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 */
45void 44void
46GCPP_try_path_from_dht(const struct GNUNET_PeerIdentity *get_path, 45GCPP_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 */
59struct CadetPeerPath * 58struct CadetPeerPath *
60GCPP_get_path_from_route(unsigned int path_length, 59GCPP_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 */
71unsigned int 70unsigned int
72GCPP_get_length(struct CadetPeerPath *path); 71GCPP_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 */
85struct CadetConnection * 84struct CadetConnection *
86GCPP_get_connection(struct CadetPeerPath *path, 85GCPP_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 */
99void 98void
100GCPP_add_connection(struct CadetPeerPath *path, 99GCPP_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 */
113void 112void
114GCPP_del_connection(struct CadetPeerPath *path, 113GCPP_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 */
126unsigned int 125unsigned int
127GCPP_find_peer(struct CadetPeerPath *path, 126GCPP_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 */
144GNUNET_CONTAINER_HeapCostType 143GNUNET_CONTAINER_HeapCostType
145GCPP_get_desirability(const struct CadetPeerPath *path); 144GCPP_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 */
156void 155void
157GCPP_release(struct CadetPeerPath *path); 156GCPP_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 */
167struct CadetPeer * 166struct CadetPeer *
168GCPP_get_peer_at_offset(struct CadetPeerPath *path, 167GCPP_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 */
178const char * 177const char *
179GCPP_2s(struct CadetPeerPath *p); 178GCPP_2s (struct CadetPeerPath *p);
180 179
181 180
182#endif 181#endif