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

Re: [libvirt] [libvirt-glib 11/23] Use gvir_config_object_to_xml



On Fri, Oct 07, 2011 at 11:40:56AM +0200, Christophe Fergeau wrote:
> s/gvir_config_object_get_doc/gvir_config_object_to_xml/
> 
> Prefer gvir_config_object_to_xml over gvir_config_object_get_doc
> since the latter will be removed soon.

This one needs an additional

diff --git a/libvirt-gobject/libvirt-gobject-connection.c
b/libvirt-gobject/libvirt-gobject-connection.c
index e3fafed..99687b8 100644
--- a/libvirt-gobject/libvirt-gobject-connection.c
+++ b/libvirt-gobject/libvirt-gobject-connection.c
@@ -1220,7 +1220,7 @@ GVirStoragePool *gvir_connection_create_storage_pool
     virStoragePoolPtr handle;
     GVirConnectionPrivate *priv = conn->priv;
 
-    xml = gvir_config_object_get_doc(GVIR_CONFIG_OBJECT(conf));
+    xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
 
     g_return_val_if_fail(xml != NULL, NULL);

when applied on top of current master


> ---
>  libvirt-gobject/libvirt-gobject-connection.c   |    2 +-
>  libvirt-gobject/libvirt-gobject-storage-pool.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libvirt-gobject/libvirt-gobject-connection.c b/libvirt-gobject/libvirt-gobject-connection.c
> index 007d86e..71fa768 100644
> --- a/libvirt-gobject/libvirt-gobject-connection.c
> +++ b/libvirt-gobject/libvirt-gobject-connection.c
> @@ -1170,7 +1170,7 @@ GVirDomain *gvir_connection_create_domain(GVirConnection *conn,
>      virDomainPtr handle;
>      GVirConnectionPrivate *priv = conn->priv;
>  
> -    xml = gvir_config_object_get_doc(GVIR_CONFIG_OBJECT(conf));
> +    xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
>  
>      g_return_val_if_fail(xml != NULL, NULL);
>  
> diff --git a/libvirt-gobject/libvirt-gobject-storage-pool.c b/libvirt-gobject/libvirt-gobject-storage-pool.c
> index fc9cba9..8cc481e 100644
> --- a/libvirt-gobject/libvirt-gobject-storage-pool.c
> +++ b/libvirt-gobject/libvirt-gobject-storage-pool.c
> @@ -491,7 +491,7 @@ GVirStorageVol *gvir_storage_pool_create_volume
>      virStorageVolPtr handle;
>      GVirStoragePoolPrivate *priv = pool->priv;
>  
> -    xml = gvir_config_object_get_doc(GVIR_CONFIG_OBJECT(conf));
> +    xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
>  
>      g_return_val_if_fail(xml != NULL, NULL);
>  
> -- 
> 1.7.6.4
> 
> --
> libvir-list mailing list
> libvir-list redhat com
> https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: pgpssyfp18sE9.pgp
Description: PGP signature


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