Re: [PATCH 3/7] conf: make virDomainNetDefFormat a public function

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

 



On 21.02.2014 14:58, Laine Stump wrote:
We will need to call virDomainNetDefFormat() from the network hook (in
the network driver).
---
  src/conf/domain_conf.c   | 2 +-
  src/conf/domain_conf.h   | 4 ++++
  src/libvirt_private.syms | 1 +
  3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 755066c..b5b70cd 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -15504,7 +15504,7 @@ virDomainActualNetDefFormat(virBufferPtr buf,
      return 0;
  }

-static int
+int
  virDomainNetDefFormat(virBufferPtr buf,
                        virDomainNetDefPtr def,
                        unsigned int flags)
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 97d6337..2467f65 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2402,6 +2402,10 @@ int virDomainDiskSourceDefFormatInternal(virBufferPtr buf,
                                           virDomainDiskSourcePoolDefPtr srcpool,
                                           unsigned int flags);

+int virDomainNetDefFormat(virBufferPtr buf,
+                          virDomainNetDefPtr def,
+                          unsigned int flags);
+
  int virDomainDefCompatibleDevice(virDomainDefPtr def,
                                   virDomainDeviceDefPtr dev);

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 0896287..bb7b6da 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -300,6 +300,7 @@ virDomainMemballoonModelTypeFromString;
  virDomainMemballoonModelTypeToString;
  virDomainMemDumpTypeFromString;
  virDomainMemDumpTypeToString;
+virDomainNetDefFormat;
  virDomainNetDefFree;
  virDomainNetFind;
  virDomainNetFindIdx;


ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]