diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-04 19:29:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-04 19:29:40 +0000 |
commit | b766cf70853e0732c0785648acd74c6958fea5a7 (patch) | |
tree | 8eb92fc0f768bd1b0382bdbba3a95a6a6fc49260 /src/transport/gnunet-service-transport.c | |
parent | 59e32c55941cd3927480d3971cec387e458914c9 (diff) | |
download | gnunet-b766cf70853e0732c0785648acd74c6958fea5a7.tar.gz gnunet-b766cf70853e0732c0785648acd74c6958fea5a7.zip |
implementing plugins subsystem
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 9658d119b..269d21f63 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -6131,6 +6131,13 @@ handle_address_iterate (void *cls, | |||
6131 | } | 6131 | } |
6132 | 6132 | ||
6133 | 6133 | ||
6134 | static const struct GNUNET_MessageHeader * | ||
6135 | do_get_our_hello () | ||
6136 | { | ||
6137 | return (const struct GNUNET_MessageHeader*) our_hello; | ||
6138 | } | ||
6139 | |||
6140 | |||
6134 | /** | 6141 | /** |
6135 | * Setup the environment for this plugin. | 6142 | * Setup the environment for this plugin. |
6136 | */ | 6143 | */ |
@@ -6139,7 +6146,7 @@ create_environment (struct TransportPlugin *plug) | |||
6139 | { | 6146 | { |
6140 | plug->env.cfg = cfg; | 6147 | plug->env.cfg = cfg; |
6141 | plug->env.my_identity = &my_identity; | 6148 | plug->env.my_identity = &my_identity; |
6142 | plug->env.our_hello = &our_hello; | 6149 | plug->env.get_our_hello = &do_get_our_hello; |
6143 | plug->env.cls = plug; | 6150 | plug->env.cls = plug; |
6144 | plug->env.receive = &plugin_env_receive; | 6151 | plug->env.receive = &plugin_env_receive; |
6145 | plug->env.notify_address = &plugin_env_notify_address; | 6152 | plug->env.notify_address = &plugin_env_notify_address; |