diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-09 15:23:13 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-09 15:23:13 +0000 |
commit | dc330efac154fab36391d376265ffe07460b9cfd (patch) | |
tree | e9a94f7ed577e926d2e1d5c0a5bfbfd725bf03a5 /src/include/gnunet_transport_plugin.h | |
parent | d09bb1a4e9fb25c31bf9058c7d61ccf3e376da85 (diff) | |
download | gnunet-dc330efac154fab36391d376265ffe07460b9cfd.tar.gz gnunet-dc330efac154fab36391d376265ffe07460b9cfd.zip |
new api function to get network for session
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 603b6ee4f..025b3f8ad 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h | |||
@@ -494,6 +494,17 @@ typedef int (*GNUNET_TRANSPORT_StringToAddress) (void *cls, | |||
494 | 494 | ||
495 | 495 | ||
496 | /** | 496 | /** |
497 | * Function obtain the network type for a session | ||
498 | * | ||
499 | * @param cls closure ('struct Plugin*') | ||
500 | * @param session the session | ||
501 | * @return the network type in HBO or GNUNET_SYSERR | ||
502 | */ | ||
503 | typedef int (*GNUNET_TRANSPORT_GetNetworkType) (void *cls, | ||
504 | void *session); | ||
505 | |||
506 | |||
507 | /** | ||
497 | * Each plugin is required to return a pointer to a struct of this | 508 | * Each plugin is required to return a pointer to a struct of this |
498 | * type as the return value from its entry point. | 509 | * type as the return value from its entry point. |
499 | */ | 510 | */ |
@@ -556,6 +567,12 @@ struct GNUNET_TRANSPORT_PluginFunctions | |||
556 | * object | 567 | * object |
557 | */ | 568 | */ |
558 | GNUNET_TRANSPORT_CreateSession get_session; | 569 | GNUNET_TRANSPORT_CreateSession get_session; |
570 | |||
571 | |||
572 | /** | ||
573 | * Function to obtain the network type for a session | ||
574 | */ | ||
575 | GNUNET_TRANSPORT_GetNetworkType get_network; | ||
559 | }; | 576 | }; |
560 | 577 | ||
561 | 578 | ||