aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-04 19:29:40 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-04 19:29:40 +0000
commitb766cf70853e0732c0785648acd74c6958fea5a7 (patch)
tree8eb92fc0f768bd1b0382bdbba3a95a6a6fc49260 /src/include
parent59e32c55941cd3927480d3971cec387e458914c9 (diff)
downloadgnunet-b766cf70853e0732c0785648acd74c6958fea5a7.tar.gz
gnunet-b766cf70853e0732c0785648acd74c6958fea5a7.zip
implementing plugins subsystem
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_transport_plugin.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 7704d2b0c..76b851255 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -177,6 +177,12 @@ typedef void (*GNUNET_TRANSPORT_CostReport) (void *cls,
177 177
178 178
179/** 179/**
180 * Function that returns a HELLO message.
181 */
182typedef const struct GNUNET_MessageHeader * (*GNUNET_TRANSPORT_GetHelloCallback)(void);
183
184
185/**
180 * The transport service will pass a pointer to a struct 186 * The transport service will pass a pointer to a struct
181 * of this type as the first and only argument to the 187 * of this type as the first and only argument to the
182 * entry point of each transport plugin. 188 * entry point of each transport plugin.
@@ -194,12 +200,6 @@ struct GNUNET_TRANSPORT_PluginEnvironment
194 const struct GNUNET_PeerIdentity *my_identity; 200 const struct GNUNET_PeerIdentity *my_identity;
195 201
196 /** 202 /**
197 * Pointer (!) to our HELLO message. Note that the address
198 * referred to "*our_hello" might change over time.
199 */
200 struct GNUNET_HELLO_Message *const*our_hello;
201
202 /**
203 * Closure for the various callbacks. 203 * Closure for the various callbacks.
204 */ 204 */
205 void *cls; 205 void *cls;
@@ -215,6 +215,12 @@ struct GNUNET_TRANSPORT_PluginEnvironment
215 */ 215 */
216 GNUNET_TRANSPORT_PluginReceiveCallback receive; 216 GNUNET_TRANSPORT_PluginReceiveCallback receive;
217 217
218
219 /**
220 * Function that returns our HELLO.
221 */
222 GNUNET_TRANSPORT_GetHelloCallback get_our_hello;
223
218 /** 224 /**
219 * Function that must be called by each plugin to notify the 225 * Function that must be called by each plugin to notify the
220 * transport service about the addresses under which the transport 226 * transport service about the addresses under which the transport