uncrustify as demanded.
[oweals/gnunet.git] / src / transport / plugin_transport_udp.h
index cccb3ceb3717ec9f1908573d4eb3983e1fb09da3..6bdc020ffa2c2d341be40de692724f8a8d1a3f23 100644 (file)
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      Affero General Public License for more details.
-    
+
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
      SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
 
 /**
  * @file transport/plugin_transport_udp.h
@@ -41,7 +41,7 @@
 #include "gnunet_transport_plugin.h"
 #include "transport.h"
 
-#define LOG(kind,...) GNUNET_log_from (kind, "transport-udp", __VA_ARGS__)
+#define LOG(kind, ...) GNUNET_log_from(kind, "transport-udp", __VA_ARGS__)
 
 #define PLUGIN_NAME "udp"
 
@@ -60,8 +60,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
 /**
  * Network format for IPv4 addresses.
  */
-struct IPv4UdpAddress
-{
+struct IPv4UdpAddress {
   /**
    * Optional options and flags for this address
    */
@@ -82,8 +81,7 @@ struct IPv4UdpAddress
 /**
  * Network format for IPv6 addresses.
  */
-struct IPv6UdpAddress
-{
+struct IPv6UdpAddress {
   /**
    * Optional options and flags for this address
    */
@@ -105,8 +103,7 @@ GNUNET_NETWORK_STRUCT_END
  * Either an IPv4 or IPv6 UDP address.  Note that without a "length",
  * one cannot tell which one of the two types this address represents.
  */
-union UdpAddress
-{
+union UdpAddress {
   /**
    * IPv4 case.
    */
@@ -134,9 +131,7 @@ struct PrettyPrinterContext;
 /**
  * Encapsulation of all of the state of the plugin.
  */
-struct Plugin
-{
-
+struct Plugin {
   /**
    * Our environment.
    */
@@ -302,7 +297,6 @@ struct Plugin
    * Port we advertise on.
    */
   uint16_t aport;
-
 };
 
 
@@ -318,9 +312,9 @@ struct Plugin
  * @return string representing the same address
  */
 const char *
-udp_address_to_string (void *cls,
-                       const void *addr,
-                       size_t addrlen);
+udp_address_to_string(void *cls,
+                      const void *addr,
+                      size_t addrlen);
 
 
 /**
@@ -335,22 +329,22 @@ udp_address_to_string (void *cls,
  * @param network_type network type of the sender's address
  */
 void
-udp_broadcast_receive (struct Plugin *plugin,
-                       const char *buf,
-                       ssize_t size,
-                       const union UdpAddress *udp_addr,
-                       size_t udp_addr_len,
-                       enum GNUNET_NetworkType network_type);
+udp_broadcast_receive(struct Plugin *plugin,
+                      const char *buf,
+                      ssize_t size,
+                      const union UdpAddress *udp_addr,
+                      size_t udp_addr_len,
+                      enum GNUNET_NetworkType network_type);
 
 
 void
-setup_broadcast (struct Plugin *plugin,
-                 struct sockaddr_in6 *server_addrv6,
-                 struct sockaddr_in *server_addrv4);
+setup_broadcast(struct Plugin *plugin,
+                struct sockaddr_in6 *server_addrv6,
+                struct sockaddr_in *server_addrv4);
 
 
 void
-stop_broadcast (struct Plugin *plugin);
+stop_broadcast(struct Plugin *plugin);
 
 /*#ifndef PLUGIN_TRANSPORT_UDP_H*/
 #endif