diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-19 01:05:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-19 01:05:57 +0000 |
commit | d769049a7db56037ea4aff3d9d8a8d42a373ec9c (patch) | |
tree | fdcce1b9036dd15ecacf496cc3f7a7beb977d228 /src/include | |
parent | 41db8e4309d6c674066850dbbf823e591121d0c1 (diff) | |
download | gnunet-d769049a7db56037ea4aff3d9d8a8d42a373ec9c.tar.gz gnunet-d769049a7db56037ea4aff3d9d8a8d42a373ec9c.zip |
-indentation, doxygen
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_container_lib.h | 14 | ||||
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 13 |
2 files changed, 16 insertions, 11 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index 60082489c..12ab1ae02 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h | |||
@@ -612,9 +612,10 @@ enum GNUNET_CONTAINER_MultiHashMapOption | |||
612 | * iterate, | 612 | * iterate, |
613 | * #GNUNET_NO if not. | 613 | * #GNUNET_NO if not. |
614 | */ | 614 | */ |
615 | typedef int (*GNUNET_CONTAINER_HashMapIterator) (void *cls, | 615 | typedef int |
616 | const struct GNUNET_HashCode *key, | 616 | (*GNUNET_CONTAINER_HashMapIterator) (void *cls, |
617 | void *value); | 617 | const struct GNUNET_HashCode *key, |
618 | void *value); | ||
618 | 619 | ||
619 | 620 | ||
620 | /** | 621 | /** |
@@ -856,9 +857,10 @@ GNUNET_CONTAINER_multihashmap_get_multiple (const struct GNUNET_CONTAINER_MultiH | |||
856 | * iterate, | 857 | * iterate, |
857 | * #GNUNET_NO if not. | 858 | * #GNUNET_NO if not. |
858 | */ | 859 | */ |
859 | typedef int (*GNUNET_CONTAINER_PeerMapIterator) (void *cls, | 860 | typedef int |
860 | const struct GNUNET_PeerIdentity *key, | 861 | (*GNUNET_CONTAINER_PeerMapIterator) (void *cls, |
861 | void *value); | 862 | const struct GNUNET_PeerIdentity *key, |
863 | void *value); | ||
862 | 864 | ||
863 | 865 | ||
864 | struct GNUNET_CONTAINER_MultiPeerMap; | 866 | struct GNUNET_CONTAINER_MultiPeerMap; |
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 90d6ed2c6..8ebb3a92b 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h | |||
@@ -85,11 +85,12 @@ typedef void | |||
85 | */ | 85 | */ |
86 | typedef void | 86 | typedef void |
87 | (*GNUNET_TRANSPORT_SessionStart) (void *cls, | 87 | (*GNUNET_TRANSPORT_SessionStart) (void *cls, |
88 | struct GNUNET_HELLO_Address *address, | 88 | const struct GNUNET_HELLO_Address *address, |
89 | struct Session *session, | 89 | struct Session *session, |
90 | const struct GNUNET_ATS_Information *ats, | 90 | const struct GNUNET_ATS_Information *ats, |
91 | uint32_t ats_count); | 91 | uint32_t ats_count); |
92 | 92 | ||
93 | |||
93 | /** | 94 | /** |
94 | * Function called by the transport for each received message. | 95 | * Function called by the transport for each received message. |
95 | * This function should also be called with "NULL" for the | 96 | * This function should also be called with "NULL" for the |
@@ -120,8 +121,9 @@ typedef struct GNUNET_TIME_Relative | |||
120 | 121 | ||
121 | 122 | ||
122 | /** | 123 | /** |
123 | * Function that will be called to figure if an address is an | 124 | * Function that can be called by plugins to figure if an address is |
124 | * loopback, LAN, WAN etc. address | 125 | * an loopback, LAN or WAN address. Ultimately invokes |
126 | * #GNUNET_ATS_address_get_type(). | ||
125 | * | 127 | * |
126 | * @param cls closure | 128 | * @param cls closure |
127 | * @param addr binary address | 129 | * @param addr binary address |
@@ -152,6 +154,7 @@ typedef void | |||
152 | const struct GNUNET_ATS_Information *ats, | 154 | const struct GNUNET_ATS_Information *ats, |
153 | uint32_t ats_count); | 155 | uint32_t ats_count); |
154 | 156 | ||
157 | |||
155 | /** | 158 | /** |
156 | * Function that will be called for each address the transport | 159 | * Function that will be called for each address the transport |
157 | * is aware that it might be reachable under. | 160 | * is aware that it might be reachable under. |
@@ -587,7 +590,7 @@ typedef int | |||
587 | /** | 590 | /** |
588 | * Function to obtain the network type for a session | 591 | * Function to obtain the network type for a session |
589 | * | 592 | * |
590 | * @param cls closure ('struct Plugin*') | 593 | * @param cls closure (`struct Plugin *`) |
591 | * @param session the session | 594 | * @param session the session |
592 | * @return the network type | 595 | * @return the network type |
593 | */ | 596 | */ |
@@ -718,7 +721,7 @@ struct GNUNET_TRANSPORT_PluginFunctions | |||
718 | 721 | ||
719 | /** | 722 | /** |
720 | * Function that will be called tell the plugin to create a session | 723 | * Function that will be called tell the plugin to create a session |
721 | * object | 724 | * object. |
722 | */ | 725 | */ |
723 | GNUNET_TRANSPORT_CreateSession get_session; | 726 | GNUNET_TRANSPORT_CreateSession get_session; |
724 | 727 | ||