diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
commit | 502af2167f7c218366666ca4944bd7cc54b5b19a (patch) | |
tree | a91fec5cc9769d260640bd91c6633cb9cf395524 /src/include/gnunet_fragmentation_lib.h | |
parent | 03af5a603b7cc53432249d5854cd412aa90dde0d (diff) | |
download | gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.tar.gz gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.zip |
indentation
Diffstat (limited to 'src/include/gnunet_fragmentation_lib.h')
-rw-r--r-- | src/include/gnunet_fragmentation_lib.h | 58 |
1 files changed, 36 insertions, 22 deletions
diff --git a/src/include/gnunet_fragmentation_lib.h b/src/include/gnunet_fragmentation_lib.h index e91e74c6f..da236478c 100644 --- a/src/include/gnunet_fragmentation_lib.h +++ b/src/include/gnunet_fragmentation_lib.h | |||
@@ -58,7 +58,8 @@ struct GNUNET_FRAGMENT_Context; | |||
58 | * @param msg the message that was created | 58 | * @param msg the message that was created |
59 | */ | 59 | */ |
60 | typedef void (*GNUNET_FRAGMENT_MessageProcessor) (void *cls, | 60 | typedef void (*GNUNET_FRAGMENT_MessageProcessor) (void *cls, |
61 | const struct GNUNET_MessageHeader *msg); | 61 | const struct |
62 | GNUNET_MessageHeader * msg); | ||
62 | 63 | ||
63 | 64 | ||
64 | /** | 65 | /** |
@@ -79,14 +80,22 @@ typedef void (*GNUNET_FRAGMENT_MessageProcessor) (void *cls, | |||
79 | * @param proc_cls closure for proc | 80 | * @param proc_cls closure for proc |
80 | * @return the fragmentation context | 81 | * @return the fragmentation context |
81 | */ | 82 | */ |
82 | struct GNUNET_FRAGMENT_Context * | 83 | struct GNUNET_FRAGMENT_Context *GNUNET_FRAGMENT_context_create (struct |
83 | GNUNET_FRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, | 84 | GNUNET_STATISTICS_Handle |
84 | uint16_t mtu, | 85 | *stats, |
85 | struct GNUNET_BANDWIDTH_Tracker *tracker, | 86 | uint16_t mtu, |
86 | struct GNUNET_TIME_Relative delay, | 87 | struct |
87 | const struct GNUNET_MessageHeader *msg, | 88 | GNUNET_BANDWIDTH_Tracker |
88 | GNUNET_FRAGMENT_MessageProcessor proc, | 89 | *tracker, |
89 | void *proc_cls); | 90 | struct |
91 | GNUNET_TIME_Relative | ||
92 | delay, | ||
93 | const struct | ||
94 | GNUNET_MessageHeader | ||
95 | *msg, | ||
96 | GNUNET_FRAGMENT_MessageProcessor | ||
97 | proc, | ||
98 | void *proc_cls); | ||
90 | 99 | ||
91 | 100 | ||
92 | /** | 101 | /** |
@@ -112,7 +121,7 @@ GNUNET_FRAGMENT_context_transmission_done (struct GNUNET_FRAGMENT_Context *fc); | |||
112 | * GNUNET_SYSERR if this ack is not valid for this fc | 121 | * GNUNET_SYSERR if this ack is not valid for this fc |
113 | */ | 122 | */ |
114 | int GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc, | 123 | int GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc, |
115 | const struct GNUNET_MessageHeader *msg); | 124 | const struct GNUNET_MessageHeader *msg); |
116 | 125 | ||
117 | 126 | ||
118 | /** | 127 | /** |
@@ -144,8 +153,9 @@ struct GNUNET_DEFRAGMENT_Context; | |||
144 | * @param msg the message that was created | 153 | * @param msg the message that was created |
145 | */ | 154 | */ |
146 | typedef void (*GNUNET_DEFRAGMENT_AckProcessor) (void *cls, | 155 | typedef void (*GNUNET_DEFRAGMENT_AckProcessor) (void *cls, |
147 | uint32_t id, | 156 | uint32_t id, |
148 | const struct GNUNET_MessageHeader *msg); | 157 | const struct |
158 | GNUNET_MessageHeader * msg); | ||
149 | 159 | ||
150 | 160 | ||
151 | /** | 161 | /** |
@@ -161,13 +171,18 @@ typedef void (*GNUNET_DEFRAGMENT_AckProcessor) (void *cls, | |||
161 | * back to the other side) | 171 | * back to the other side) |
162 | * @return the defragmentation context | 172 | * @return the defragmentation context |
163 | */ | 173 | */ |
164 | struct GNUNET_DEFRAGMENT_Context * | 174 | struct GNUNET_DEFRAGMENT_Context *GNUNET_DEFRAGMENT_context_create (struct |
165 | GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, | 175 | GNUNET_STATISTICS_Handle |
166 | uint16_t mtu, | 176 | *stats, |
167 | unsigned int num_msgs, | 177 | uint16_t |
168 | void *cls, | 178 | mtu, |
169 | GNUNET_FRAGMENT_MessageProcessor proc, | 179 | unsigned int |
170 | GNUNET_DEFRAGMENT_AckProcessor ackp); | 180 | num_msgs, |
181 | void *cls, | ||
182 | GNUNET_FRAGMENT_MessageProcessor | ||
183 | proc, | ||
184 | GNUNET_DEFRAGMENT_AckProcessor | ||
185 | ackp); | ||
171 | 186 | ||
172 | 187 | ||
173 | /** | 188 | /** |
@@ -175,8 +190,7 @@ GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, | |||
175 | * | 190 | * |
176 | * @param dc defragmentation context | 191 | * @param dc defragmentation context |
177 | */ | 192 | */ |
178 | void | 193 | void GNUNET_DEFRAGMENT_context_destroy (struct GNUNET_DEFRAGMENT_Context *dc); |
179 | GNUNET_DEFRAGMENT_context_destroy (struct GNUNET_DEFRAGMENT_Context *dc); | ||
180 | 194 | ||
181 | 195 | ||
182 | /** | 196 | /** |
@@ -188,7 +202,7 @@ GNUNET_DEFRAGMENT_context_destroy (struct GNUNET_DEFRAGMENT_Context *dc); | |||
188 | */ | 202 | */ |
189 | int | 203 | int |
190 | GNUNET_DEFRAGMENT_process_fragment (struct GNUNET_DEFRAGMENT_Context *dc, | 204 | GNUNET_DEFRAGMENT_process_fragment (struct GNUNET_DEFRAGMENT_Context *dc, |
191 | const struct GNUNET_MessageHeader *msg); | 205 | const struct GNUNET_MessageHeader *msg); |
192 | 206 | ||
193 | 207 | ||
194 | #if 0 /* keep Emacsens' auto-indent happy */ | 208 | #if 0 /* keep Emacsens' auto-indent happy */ |