/*
This file is part of GNUnet.
- Copyright (C) 2007-2014 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2007-2014 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
*/
/**
- * @file include/gnunet_nat_lib.h
- * @brief Library handling UPnP and NAT-PMP port forwarding and
- * external IP address retrieval
* @author Christian Grothoff
* @author Milan Bouchet-Valat
+ *
+ * @file
+ * Library handling UPnP and NAT-PMP port forwarding
+ * and external IP address retrieval
+ *
+ * @defgroup nat NAT library
+ * Library handling UPnP and NAT-PMP port forwarding
+ * and external IP address retrieval
+ *
+ * @{
*/
#ifndef GNUNET_NAT_LIB_H
* @param addr the address, NULL on errors
* @param result #GNUNET_NAT_ERROR_SUCCESS on success, otherwise the specific error code
*/
-typedef void (*GNUNET_NAT_IPCallback) (void *cls,
- const struct in_addr *addr,
- enum GNUNET_NAT_StatusCode result);
-
+typedef void
+(*GNUNET_NAT_IPCallback) (void *cls,
+ const struct in_addr *addr,
+ enum GNUNET_NAT_StatusCode result);
/**
struct GNUNET_NAT_STUN_Handle;
-
-
/**
* Function called with the result if an error happened during STUN request.
*
* You don't need to call anything else to check if the packet is valid,
*
* @param cls the NAT handle
- * @param data, packet
- * @param len, packet length
- *
+ * @param data packet
+ * @param len length of @a data
* @return #GNUNET_NO if it can't decode, #GNUNET_YES if is a packet
*/
int
size_t len);
-
#endif
+/** @} */ /* end of group */
+
/* end of gnunet_nat_lib.h */