[RFC 11/29] conf: Replace virNetworkDNSHostDef(hardcoded) with namesake(generated)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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







[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux