]> git.proxmox.com Git - qemu.git/commitdiff
net: Make inet_strfamily() public
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 20 Jan 2010 13:42:38 +0000 (11:42 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Jan 2010 14:25:23 +0000 (08:25 -0600)
So that it can be used by other subsystems.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-sockets.c
qemu_socket.h

index 8850516f2c8a60ce921900b9400f74a53ecc799a..720de22cf58930c67955dbd6eef6a65b9c9fb07e 100644 (file)
@@ -91,7 +91,7 @@ static void inet_setport(struct addrinfo *e, int port)
     }
 }
 
-static const char *inet_strfamily(int family)
+const char *inet_strfamily(int family)
 {
     switch (family) {
     case PF_INET6: return "ipv6";
index 86bdbf53d5626eab0eae17e49712fe9a0f6e643c..7ee46ac4ecb685e411f7454a96f63696005f91b3 100644 (file)
@@ -44,6 +44,7 @@ int inet_listen(const char *str, char *ostr, int olen,
 int inet_connect_opts(QemuOpts *opts);
 int inet_connect(const char *str, int socktype);
 int inet_dgram_opts(QemuOpts *opts);
+const char *inet_strfamily(int family);
 
 int unix_listen_opts(QemuOpts *opts);
 int unix_listen(const char *path, char *ostr, int olen);