|
@@ -654,7 +654,8 @@
|
|
|
# Since: 1.1
|
|
|
##
|
|
|
{ 'enum': 'GuestIpAddressType',
|
|
|
- 'data': [ 'ipv4', 'ipv6' ] }
|
|
|
+ 'data': [ 'ipv4', 'ipv6' ],
|
|
|
+ 'if': { 'any': ['CONFIG_WIN32', 'HAVE_GETIFADDRS'] } }
|
|
|
|
|
|
##
|
|
|
# @GuestIpAddress:
|
|
@@ -670,7 +671,8 @@
|
|
|
{ 'struct': 'GuestIpAddress',
|
|
|
'data': {'ip-address': 'str',
|
|
|
'ip-address-type': 'GuestIpAddressType',
|
|
|
- 'prefix': 'int'} }
|
|
|
+ 'prefix': 'int'},
|
|
|
+ 'if': { 'any': ['CONFIG_WIN32', 'HAVE_GETIFADDRS'] } }
|
|
|
|
|
|
##
|
|
|
# @GuestNetworkInterfaceStat:
|
|
@@ -702,7 +704,8 @@
|
|
|
'tx-packets': 'uint64',
|
|
|
'tx-errs': 'uint64',
|
|
|
'tx-dropped': 'uint64'
|
|
|
- } }
|
|
|
+ },
|
|
|
+ 'if': { 'any': ['CONFIG_WIN32', 'HAVE_GETIFADDRS'] } }
|
|
|
|
|
|
##
|
|
|
# @GuestNetworkInterface:
|
|
@@ -722,7 +725,8 @@
|
|
|
'data': {'name': 'str',
|
|
|
'*hardware-address': 'str',
|
|
|
'*ip-addresses': ['GuestIpAddress'],
|
|
|
- '*statistics': 'GuestNetworkInterfaceStat' } }
|
|
|
+ '*statistics': 'GuestNetworkInterfaceStat' },
|
|
|
+ 'if': { 'any': ['CONFIG_WIN32', 'HAVE_GETIFADDRS'] } }
|
|
|
|
|
|
##
|
|
|
# @guest-network-get-interfaces:
|
|
@@ -734,7 +738,8 @@
|
|
|
# Since: 1.1
|
|
|
##
|
|
|
{ 'command': 'guest-network-get-interfaces',
|
|
|
- 'returns': ['GuestNetworkInterface'] }
|
|
|
+ 'returns': ['GuestNetworkInterface'],
|
|
|
+ 'if': { 'any': ['CONFIG_WIN32', 'HAVE_GETIFADDRS'] } }
|
|
|
|
|
|
##
|
|
|
# @GuestLogicalProcessor:
|