From: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>
This was only declared in header previously but not implemented.
---
libvirt-gobject/libvirt-gobject-storage-vol.c | 11 +++++++++++
libvirt-gobject/libvirt-gobject.sym | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/libvirt-gobject/libvirt-gobject-storage-vol.c
b/libvirt-gobject/libvirt-gobject-storage-vol.c
index b94f6cf..6cbae84 100644
--- a/libvirt-gobject/libvirt-gobject-storage-vol.c
+++ b/libvirt-gobject/libvirt-gobject-storage-vol.c
@@ -182,6 +182,17 @@ const gchar *gvir_storage_vol_get_name(GVirStorageVol *vol)
return name;
}
+const gchar *gvir_storage_vol_get_path(GVirStorageVol *vol)
+{
+ GVirStorageVolPrivate *priv = vol->priv;
+ const char *path;
+
+ if (!(path = virStorageVolGetPath(priv->handle))) {
+ g_error("Failed to get storage_vol path on %p", priv->handle);
+ }
+
+ return path;
+}
/**
* gvir_storage_vol_get_config:
diff --git a/libvirt-gobject/libvirt-gobject.sym b/libvirt-gobject/libvirt-gobject.sym
index ff2f4cf..ea4ec38 100644
--- a/libvirt-gobject/libvirt-gobject.sym
+++ b/libvirt-gobject/libvirt-gobject.sym
@@ -83,6 +83,7 @@ LIBVIRT_GOBJECT_0.0.1 {
gvir_storage_vol_get_type;
gvir_storage_vol_handle_get_type;
gvir_storage_vol_get_name;
+ gvir_storage_vol_get_path;
gvir_storage_vol_get_config;
gvir_connection_handle_get_type;
--
1.7.6.2