[libvirt] [PATCH 02/15] util: Add virabstracts file for keeping abstract classes

Michal Privoznik mprivozn at redhat.com
Tue Apr 21 16:41:36 UTC 2015


On 16.04.2015 16:46, Martin Kletzander wrote:
> The first class in this file is going to be an abstract connection class
> that holds a per-connection error inside.  virConnect will be the first
> child class inheriting from this one.
> 
> This is a separate file because virerror.c is going to depend on it and
> putting it into datatypes along with other connect classes would create
> a dependency on datatypes from the util library.
> 
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> ---
>  src/Makefile.am          |   3 +-
>  src/libvirt_private.syms |   5 +++
>  src/util/virabstracts.c  | 100 +++++++++++++++++++++++++++++++++++++++++++++++
>  src/util/virabstracts.h  |  57 +++++++++++++++++++++++++++
>  4 files changed, 164 insertions(+), 1 deletion(-)
>  create mode 100644 src/util/virabstracts.c
>  create mode 100644 src/util/virabstracts.h
> 

You need to squash this in:

diff --git a/src/xen/xen_inotify.c b/src/xen/xen_inotify.c
index cd1e2df..9592de7 100644
--- a/src/xen/xen_inotify.c
+++ b/src/xen/xen_inotify.c
@@ -410,7 +410,7 @@ xenInotifyOpen(virConnectPtr conn,
     VIR_DEBUG("Building initial config cache");
     if (priv->useXenConfigCache &&
         xenXMConfigCacheRefresh(conn) < 0) {
-        VIR_DEBUG("Failed to enable XM config cache %s", conn->err.message);
+        VIR_DEBUG("Failed to enable XM config cache %s", conn->parent.err.message);
         return -1;
     }

Michal




More information about the libvir-list mailing list