]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/socket-helpers.h
migration: use migration_is_active to represent active state
[mirror_qemu.git] / tests / socket-helpers.h
index 1c07d6d65614b0037af646d5fd019810dd536724..512a0048118eb3abf2e0f25a4633fcef6548fea9 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
- *
  */
 
-/*
- * @hostname: a DNS name or numeric IP address
- *
- * Check whether it is possible to bind & connect to ports
- * on the DNS name or IP address @hostname. If an IP address
- * is used, it must not be a wildcard address.
- *
- * Returns 0 on success, -1 on error with errno set
- */
-int socket_can_bind_connect(const char *hostname);
+#ifndef TESTS_SOCKET_HELPERS_H
+#define TESTS_SOCKET_HELPERS_H
 
 /*
  * @has_ipv4: set to true on return if IPv4 is available
@@ -40,3 +31,5 @@ int socket_can_bind_connect(const char *hostname);
  * Returns 0 on success, -1 on fatal error
  */
 int socket_check_protocol_support(bool *has_ipv4, bool *has_ipv6);
+
+#endif