Signed-off-by: Shi Lei <shi_lei@xxxxxxxxxxxxxx> --- docs/schemas/network.rng | 4 ++++ src/conf/network_conf.h | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng index 1747fc2..c83a796 100644 --- a/docs/schemas/network.rng +++ b/docs/schemas/network.rng @@ -322,6 +322,10 @@ </element> </zeroOrMore> <zeroOrMore> + <!-- VIRT:DIRECTIVE { + "structure": {"output": "src/conf/network_conf"}, + "members": [{"id": "hostname", "name": "name"}] + } --> <element name="host"> <attribute name="ip"><ref name="ipAddr"/></attribute> <oneOrMore> diff --git a/src/conf/network_conf.h b/src/conf/network_conf.h index 25a6991..d4d3c01 100644 --- a/src/conf/network_conf.h +++ b/src/conf/network_conf.h @@ -104,15 +104,6 @@ struct _virNetworkDHCPHostDef { virSocketAddr ip; }; -typedef struct _virNetworkDNSHostDef virNetworkDNSHostDef; -typedef virNetworkDNSHostDef *virNetworkDNSHostDefPtr; -struct _virNetworkDNSHostDef { - virSocketAddr ip; - size_t nnames; - char **names; -}; - - typedef struct _virNetworkDNSForwarder virNetworkDNSForwarder; typedef virNetworkDNSForwarder *virNetworkDNSForwarderPtr; struct _virNetworkDNSForwarder { -- 2.17.1