17 months agoPost release version bump to 1.1.0
Daniel P. Berrange [Fri, 4 Nov 2016 17:07:35 +0000]
Post release version bump to 1.1.0

NB, this will change to 2.0.0 if no new release is made
during 2016

Signed-off-by: Daniel P. Berrange <>

17 months agoUpdate NEWS for 1.0.0 release v1.0.0
Daniel P. Berrange [Fri, 4 Nov 2016 11:39:56 +0000]
Update NEWS for 1.0.0 release

Signed-off-by: Daniel P. Berrange <>

17 months agobump release to 1.0.0 to match libvirt numbering scheme
Daniel P. Berrange [Fri, 4 Nov 2016 11:21:48 +0000]
bump release to 1.0.0 to match libvirt numbering scheme

Switch to follow the libvirt release numbering scheme

- Major is incremented at start of each year
- Minor is incremented each release during a year
- Micro is reserved for stable branch releases (if any)

Signed-off-by: Daniel P. Berrange <>

17 months agotests: Don't leak xml data in test-gconfig-device-unknown
Christophe Fergeau [Fri, 4 Nov 2016 10:10:22 +0000]
tests: Don't leak xml data in test-gconfig-device-unknown

17 months agogconfig,tests: Add test case for unknown devices
Zeeshan Ali [Tue, 1 Nov 2016 16:29:46 +0000]
gconfig,tests: Add test case for unknown devices

17 months agogconfig,tests: Separate XML loading function
Zeeshan Ali [Tue, 1 Nov 2016 16:40:21 +0000]
gconfig,tests: Separate XML loading function

We'll need to load XML from file in another function, that will be added
in a following patch.

17 months agogconfig: Create objects for all domain device nodes
Zeeshan Ali [Tue, 1 Nov 2016 16:29:46 +0000]
gconfig: Create objects for all domain device nodes

Currently we can and do get into serious trouble with this kind of code:

devices = gvir_config_domain_get_devices(domain);
gvir_config_domain_set_devices(domain, domain);

since the first call above won't return a complete list of objects present
in the domain but only the ones we have specific classes for and the
second call above overwrites all device nodes under the domain. This
lately made Boxes break against the latest libvirt, where a new device
node was made compulsory[1].

Although we should add support for all know domain devices ASAP, new
devices will be added in future and this can happen again. So let's first
ensure that gvir_config_domain_get_devices() always returns all devices
under the domain. All unknown/unimplemented devices will now be returned
as the very generic DomainDevice objects. Once we add support for a
particular device, there will be no API/ABI breakage since the new class
will inherit from DomainDevice class.


17 months agogconfig: DomainDevice now instantiable
Zeeshan Ali [Tue, 1 Nov 2016 16:26:34 +0000]
gconfig: DomainDevice now instantiable

We'll need to instatiate DomainDevice baseclass itself for unknown (think
new devices added to libvirt XML) devices in a following patch. This
change makes that possible.

This doesn't break any API or ABI to the best of my knowledge and this
assumption was confirmed by Emmanuele Bassi and Tim-Philipp Muller.

17 months agogconfig: Allow schema to be NULL
Zeeshan Ali [Tue, 1 Nov 2016 16:24:40 +0000]
gconfig: Allow schema to be NULL

Validation (if attempted) should just fail in this case instead of

20 months agoDelete the manually written python binding
Daniel P. Berrange [Tue, 2 Aug 2016 13:32:59 +0000]
Delete the manually written python binding

The python binding only supports python2, only supports
1 single API in libvirt-glib and has not even been enabled
in RPM builds since Fedora 15. Any distro these days should
have gobject introspection and pygobject available, so
there's no compelling reason to continue to have the python
binding exist.

Signed-off-by: Daniel P. Berrange <>

20 months agoRemove accidental debug code which changed version
Daniel P. Berrange [Thu, 28 Jul 2016 12:38:01 +0000]
Remove accidental debug code which changed version

20 months agoFix check for libvirt optional functions
Daniel P. Berrange [Thu, 28 Jul 2016 12:28:28 +0000]
Fix check for libvirt optional functions

The checks for virDomainOpenGraphicsFD and
virNetworkGetDHCPLeases in configure are simply trying
to compile and link a test program. This was assuming
that libvirt was installed in /usr/lib & /usr/include,
which is not always the case. Using a pkg-config version
check avoids needing to compile and thus avoids the
bad assumptions about install locations.

Signed-off-by: Daniel P. Berrange <>

20 months agoAvoid unused variable in DHCP lease finalize method
Daniel P. Berrange [Thu, 28 Jul 2016 12:27:44 +0000]
Avoid unused variable in DHCP lease finalize method

If the network DHCP lease support is not detected, the build
will generate a warning / error:

libvirt-gobject-network-dhcp-lease.c: In function 'gvir_network_dhcp_lease_finalize':
libvirt-gobject-network-dhcp-lease.c:99:27: error: unused variable 'lease' [-Werror=unused-variable]
     GVirNetworkDHCPLease *lease = GVIR_NETWORK_DHCP_LEASE(object);
cc1: all warnings being treated as errors

Signed-off-by: Daniel P. Berrange <>

20 months agodocs: Document gvir_connection_get_{storage_pools,networks,domains}
Guido Günther [Wed, 27 Jul 2016 06:54:09 +0000]
docs: Document gvir_connection_get_{storage_pools,networks,domains}

In contrast to libvirt itself all get_* methods need to prefetch the
corresponding information first so document this.

Acked-by: Christophe Fergeau <>

21 months agotests: Add test for GVirConfigDomainHostdevPci API
Zeeshan Ali (Khattak) [Fri, 11 Mar 2016 15:08:29 +0000]
tests: Add test for GVirConfigDomainHostdevPci API

21 months agogconfig: Add GVirConfigDomainAddressPci getters
Christophe Fergeau [Fri, 11 Mar 2016 15:08:28 +0000]
gconfig: Add GVirConfigDomainAddressPci getters

They will be useful to do more checks in the GVirDomainDeviceHostdev
unit test.

21 months agogconfig: Add GVirConfigDomainHostdevPci
Zeeshan Ali (Khattak) [Fri, 11 Mar 2016 15:08:27 +0000]
gconfig: Add GVirConfigDomainHostdevPci

Add API to read and write PCI hostdev nodes.

21 months agogconfig: Add GVirConfigDomainHostdev
Zeeshan Ali (Khattak) [Fri, 11 Mar 2016 15:08:26 +0000]
gconfig: Add GVirConfigDomainHostdev

Add API to read and write domain/devices/hostdev nodes. This patch only
adds the baseclass and hence is not useful on it's own. A more specific
subclass to represent PCI devices will be added in a following patch.

21 months agogconfig: Add gvir_config_object_has_child
Christophe Fergeau [Fri, 11 Mar 2016 15:08:25 +0000]
gconfig: Add gvir_config_object_has_child

21 months agogconfig: Add gvir_config_domain_video_get_model()
Zeeshan Ali (Khattak) [Thu, 14 Jul 2016 13:04:12 +0000]
gconfig: Add gvir_config_domain_video_get_model()

Add a getter for model of domain video device.

2 years agoconfig: add accel3d setter
Marc-André Lureau [Sun, 14 Feb 2016 13:58:12 +0000]
config: add accel3d setter

Learn to set the accel3d attribute on video model.

Signed-off-by: Marc-André Lureau <>

2 years agoconfig: add virtio video model
Marc-André Lureau [Sun, 14 Feb 2016 13:57:49 +0000]
config: add virtio video model

Signed-off-by: Marc-André Lureau <>

2 years agoconfig: add spice gl child
Marc-André Lureau [Sun, 14 Feb 2016 13:48:17 +0000]
config: add spice gl child

Learn to set  "gl" on spice (to have -spice gl=on on qemu)

Signed-off-by: Marc-André Lureau <>

2 years agotests: fix potential crash
Marc-André Lureau [Fri, 26 Feb 2016 01:19:43 +0000]
tests: fix potential crash

The idle source is not always removed and may crash next tests

Signed-off-by: Marc-André Lureau <>

2 years agobuild-sys: fix gir introspection warnings
Marc-André Lureau [Sun, 14 Feb 2016 13:59:23 +0000]
build-sys: fix gir introspection warnings

Enable GIR warnings and fix them, since they are all useful.

Signed-off-by: Marc-André Lureau <>

2 years Correctly mark variable
Michal Privoznik [Sat, 26 Dec 2015 08:18:41 +0000] Correctly mark variable

In the pkg-config file for libvirt-glib we have a typo:

  Libs.private: @LIBVIRT_LIBS @GLIB2_LIBS@

Noticed the missing '@' after LIBVIRT_LIBS? Well, I just did.

Signed-off-by: Michal Privoznik <>

2 years agoPost release version bump
Daniel P. Berrange [Wed, 16 Dec 2015 18:02:20 +0000]
Post release version bump

2 years agoUpdate NEWS for 0.2.3 release v0.2.3
Daniel P. Berrange [Wed, 16 Dec 2015 16:58:38 +0000]
Update NEWS for 0.2.3 release

2 years agoRefresh translations from zanata
Daniel P. Berrange [Wed, 16 Dec 2015 16:54:18 +0000]
Refresh translations from zanata

2 years agoDrop unused finalize function
Michal Privoznik [Mon, 7 Dec 2015 11:44:05 +0000]
Drop unused finalize function

After 1225a160ac3b4 where I'm dropping some unused variables, the
functions I was touching became sort of redundant too.
Specifically, gvir_domain_disk_finalize() and

Signed-off-by: Michal Privoznik <>

2 years agogobject: Drop some unused variables
Michal Privoznik [Sat, 5 Dec 2015 08:55:06 +0000]
gobject: Drop some unused variables

After abe983ddf8a569 there are some variables, that are unused:

CC libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo
CC libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo
CC libvirt_gobject_1_0_la-libvirt-gobject-domain.lo
CC libvirt_gobject_1_0_la-libvirt-gobject-interface.lo
../../libvirt-gobject/libvirt-gobject-domain-interface.c: In function 'gvir_domain_interface_finalize':
../../libvirt-gobject/libvirt-gobject-domain-interface.c:54:26: error: unused variable 'self' [-Werror=unused-variable]
     GVirDomainInterface *self = GVIR_DOMAIN_INTERFACE(object);
cc1: all warnings being treated as errors
Makefile:724: recipe for target 'libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo' failed
make[3]: *** [libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
../../libvirt-gobject/libvirt-gobject-domain-disk.c: In function 'gvir_domain_disk_finalize':
../../libvirt-gobject/libvirt-gobject-domain-disk.c:54:21: error: unused variable 'self' [-Werror=unused-variable]
     GVirDomainDisk *self = GVIR_DOMAIN_DISK(object);
cc1: all warnings being treated as errors
Makefile:717: recipe for target 'libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo' failed

Signed-off-by: Michal Privoznik <>

2 years agogobject,gconfig: Drop redundant debug logging
Zeeshan Ali (Khattak) [Thu, 3 Dec 2015 14:41:38 +0000]
gobject,gconfig: Drop redundant debug logging

The g_debug messages in libvirt-gobject creation/destruction were to aid
troubleshooting of object reference leaks. GObject has built-in systemtap
probes that allow the same to be achieved in a more flexible manner, so
the g_debug calls can be removed

2 years agogobject: Port to GTask API
Zeeshan Ali (Khattak) [Tue, 27 Oct 2015 19:38:03 +0000]
gobject: Port to GTask API

Drop usage of deprecated GSimpleAsyncResult API.

2 years agogobject,gconfig: Drop redundant glib compatibility code
Zeeshan Ali (Khattak) [Thu, 29 Oct 2015 19:25:04 +0000]
gobject,gconfig: Drop redundant glib compatibility code

We already require and use glib >= 2.36 so there is no reason to keep
around code to ensure compatibility with glib older than that.

2 years agogobject: Add wrapper virDomainSetTime()
Zeeshan Ali (Khattak) [Tue, 27 Oct 2015 18:14:01 +0000]
gobject: Add wrapper virDomainSetTime()

2 years agogobject: Correct docs for gvir_storage_pool_get_info()
Zeeshan Ali (Khattak) [Wed, 23 Sep 2015 12:40:22 +0000]
gobject: Correct docs for gvir_storage_pool_get_info()

The returned GVirStoragePoolInfo pointer is not a GObject so it must not
be unrefed using g_object_unref(). Since gvir_storage_pool_info_free()
is private function, callers must either use g_slice_free() or

2 years update min required versions
Daniel P. Berrange [Wed, 22 Jul 2015 13:43:27 +0000] update min required versions

Based on the distro target policy we have the following
min versions in various distros

                   libvirt  glib2    gobject-introspection
        RHEL 7.0:  1.1.1    2.36.3   1.36.0
       Fedora 21:  1.2.9    2.42.1   1.42.0
    Ubuntu 14.10:  1.2.8    2.42.0   1.41.0
Ubuntu LTS 14.04:  1.2.2    2.40.0   1.40.0
       Suse 12.0:  1.2.5    2.38.2   1.38.0
   OpenSUSE 13.1:  1.1.2    2.38.2   1.38.0
        Debian 8:  1.2.9    2.42.0   1.42.0

Which means we can reasonably depend on

  libvirt >= 1.1.1
  glib2 >= 2.36.0
  gobject-introspection >= 1.36.0

NB, choosen 2.36.0 rather than 2.36.3 because they are
API compatible, the micro digit just indicates a bug
fix release.

2 years agoREADME: formally document intended platform support targets
Daniel P. Berrange [Wed, 22 Jul 2015 12:53:17 +0000]
README: formally document intended platform support targets

Give users an indication of what distro platforms the project
intends to be buildable on. This policy will be used to decide
when it is appropriate to increase the minimum required versions
of external dependancies.

As an example, as of July 1st 2015, this policy would aim to pick the
min versions based on what's available across the following sample

 - RHEL: 7.0, 7.1
 - Fedora: 21, 22
 - Ubuntu LTS: 14.04 (Trusty)
 - Ubuntu: 14.10 (Utopic), 15.04 (Vivid)
 - Suse: 12.0
 - OpenSUSE: 13.1, 13.2
 - Debian: 8.0 (Jessie)

Signed-off-by: Daniel P. Berrange <>

2 years agoexamples: Don't leak mainloop in conn-test.c
Christophe Fergeau [Tue, 30 Jun 2015 10:40:05 +0000]
examples: Don't leak mainloop in conn-test.c

The program exits right after this, so it's no big deal, but this gives
us a clean valgrind --leak-check=full output.

2 years agogconfig: Use GVirConfigObject helpers for <video> XML
Christophe Fergeau [Thu, 9 Jul 2015 07:43:00 +0000]
gconfig: Use GVirConfigObject helpers for <video> XML

GVirConfigDomainVideo is using raw libxml calls to set the 'heads' and
'vram' XML attributes rather than the helpers provided by
GVirConfigObject. This commit changes that, making the code a bit

2 years agotest-gconfig: Test video heads/vram setting
Christophe Fergeau [Thu, 9 Jul 2015 07:42:23 +0000]
test-gconfig: Test video heads/vram setting

2 years agotest-gconfig: Fix various leaks
Christophe Fergeau [Thu, 9 Jul 2015 08:08:36 +0000]
test-gconfig: Fix various leaks

Running test-gconfig under valgrind reports a few leaks that this commit

2 years agogconfig: Fix leak in gvir_config_domain_filesys_set_ram_usage
Christophe Fergeau [Thu, 9 Jul 2015 08:09:11 +0000]
gconfig: Fix leak in gvir_config_domain_filesys_set_ram_usage

The object returned by gvir_config_object_replace_child() must be
unref'ed when no longer needed.

2 years agoPost release version bump to 0.2.3
Daniel P. Berrange [Tue, 21 Jul 2015 16:17:21 +0000]
Post release version bump to 0.2.3

2 years agoUpdate NEWS for 0.2.2 release v0.2.2
Daniel P. Berrange [Tue, 21 Jul 2015 15:53:13 +0000]
Update NEWS for 0.2.2 release

2 years agoMake use of DHCP API conditionally compiled
Daniel P. Berrange [Tue, 21 Jul 2015 13:47:13 +0000]
Make use of DHCP API conditionally compiled

Previously the use of virDomainOpenGraphicsFD API from libvirt
1.2.8 was made to be conditionally compiled. Given this past
practice, make use of the virNetworkGetDHCPLeases API
conditional too, rather than requiring newer libvirt.

2 years agoAdd ram and vgamem attributes for graphics model.
T A Mahadevan [Thu, 9 Jul 2015 09:43:48 +0000]
Add ram and vgamem attributes for graphics model.

2 years agobuildsys: Add missing libraries to LDFLAGS
T A Mahadevan [Thu, 9 Jul 2015 09:43:47 +0000]
buildsys: Add missing libraries to LDFLAGS

Without these changes 'make check' would not
run on Ubuntu because of a link failure as
the tests are directly using glib/libvirt

2 years agoAdd LibvirtGConfigDomainChardevSourceUnix
T A Mahadevan [Thu, 9 Jul 2015 09:43:46 +0000]
Add LibvirtGConfigDomainChardevSourceUnix

This is needed to be able to add UNIX channels

2 years agoRequire libvirt-glib >= 1.2.6
Zeeshan Ali (Khattak) [Mon, 13 Jul 2015 17:33:48 +0000]
Require libvirt-glib >= 1.2.6

With bindings added to API that came in 1.2.6:

81c5969 - gobject: Add wrapper for virNetworkGetDHCPLeases
deed153 - gobject: Add wrapper for virNetworkDHCPLease

we better make our requirement explicit.

The alternative would be to make use of #ifdef to only use newer symbols
from libvirt if installed version is >= 1.2.6 but that would require at
least 12 #ifdef in different places and hence very ugly IMO. Keeping in
mind that 1.2.6 is more than an year old now and it doesn't make much
sense to wanting to upgrade to latest libvirt-glib but not wanting to
upgrade to even an year old libvirt, this is very unlikely to cause any
real issues.

2 years agoDsitribute the whole tests/xml folder
Cédric Bosdonnat [Tue, 7 Jul 2015 14:46:55 +0000]
Dsitribute the whole tests/xml folder

2 years agoDon't overwrite filesystem type when writing format
Cédric Bosdonnat [Tue, 7 Jul 2015 14:20:31 +0000]
Don't overwrite filesystem type when writing format

When setting filesystem driver format first and type, only the type
remained and vice-versa.

2 years agogobject: Add wrapper for virNetworkGetDHCPLeases
Zeeshan Ali (Khattak) [Fri, 26 Jun 2015 17:37:00 +0000]
gobject: Add wrapper for virNetworkGetDHCPLeases

2 years agogobject: Add wrapper for virNetworkDHCPLease
Zeeshan Ali (Khattak) [Fri, 26 Jun 2015 14:10:42 +0000]
gobject: Add wrapper for virNetworkDHCPLease

2 years agogobject: Add API to query connection networks
Zeeshan Ali (Khattak) [Sat, 27 Jun 2015 14:10:08 +0000]
gobject: Add API to query connection networks

Add API to query networks from a connection.

2 years agogobject: Add API to query connection interfaces
Zeeshan Ali (Khattak) [Sat, 27 Jun 2015 14:10:08 +0000]
gobject: Add API to query connection interfaces

Add API to query network interfaces from a connection.

2 years agogobject: Port GVirConnection to GTask
Zeeshan Ali (Khattak) [Wed, 1 Jul 2015 17:52:07 +0000]
gobject: Port GVirConnection to GTask

GSimpleAsyncResult has been deprecated in favour of GTask and with
latest glib headers, we get tons of warnings about use of deprecated
API. This patch ports the GVirConnection class to GTask.

2 years agogobject: Plug 2 virConnect leaks
Zeeshan Ali (Khattak) [Tue, 30 Jun 2015 17:02:02 +0000]
gobject: Plug 2 virConnect leaks

A virConnect reference is leaked in error cases. This patch moves the
unref after the label we jump to on errors, to avoid this leak.

2 years agogobject: Simplify gvir_connection_list*() implementations
Zeeshan Ali (Khattak) [Tue, 30 Jun 2015 16:43:01 +0000]
gobject: Simplify gvir_connection_list*() implementations

Make use of virConnectListAll* functions to avoid making 4 calls and
hence avoid race conditions and complicated code.

2 years agoBump version
Zeeshan Ali (Khattak) [Fri, 3 Jul 2015 13:35:58 +0000]
Bump version

2 years agogobject: Add gvir_interface_get_mac()
Zeeshan Ali (Khattak) [Sat, 27 Jun 2015 14:08:36 +0000]
gobject: Add gvir_interface_get_mac()

Add a wrapper for virInterfaceGetMACString().

2 years agogconfig: Fix small leak in test-domain-create
Christophe Fergeau [Mon, 13 Apr 2015 09:05:22 +0000]
gconfig: Fix small leak in test-domain-create

The object returned by gvir_config_domain_disk_get_driver() must be
unref'ed when no longer used.

2 years agoUpdate NEWS for 0.2.1 release v0.2.1
Daniel P. Berrange [Tue, 16 Jun 2015 13:26:35 +0000]
Update NEWS for 0.2.1 release

2 years agoRefresh translations from zanata
Daniel P. Berrange [Tue, 16 Jun 2015 13:25:42 +0000]
Refresh translations from zanata

2 years agodomain config: add API to set the filesystem image format
Cédric Bosdonnat [Mon, 15 Jun 2015 13:30:01 +0000]
domain config: add API to set the filesystem image format

Add the gvir_config_domain_filesys_set_driver_format function to allow
setting nbd driver type + image format for containers filesystems.

2 years agoAdd loop, nbd and ploop filesystem types
Cédric Bosdonnat [Mon, 15 Jun 2015 15:57:01 +0000]
Add loop, nbd and ploop filesystem types

2 years agogvir_config_domain_filesys_set_driver_type: replace the driver node
Cédric Bosdonnat [Mon, 15 Jun 2015 15:52:43 +0000]
gvir_config_domain_filesys_set_driver_type: replace the driver node

Replace the driver node in case the user calls the function more than
one time.

2 years agotest-gconfig: add filesystem test
Cédric Bosdonnat [Tue, 16 Jun 2015 08:07:30 +0000]
test-gconfig: add filesystem test

2 years agostorage-pool: API to get/set autostart flag
Zeeshan Ali (Khattak) [Mon, 18 May 2015 13:57:41 +0000]
storage-pool: API to get/set autostart flag

Add binding for virStoragePoolGetAutostart & virStoragePoolSetAutostart.

2 years agogconfig: Don't try to return value from gvir_config_domain_set_memory
Christophe Fergeau [Mon, 1 Jun 2015 12:44:50 +0000]
gconfig: Don't try to return value from gvir_config_domain_set_memory

gvir_config_domain_set_memory() is a void function, so using
g_return_val_if_fail() is not correct. This causes a warning/compilation
failure on CentOS CI framework:

2 years agogconfig: Add precondition checks to some public entry points
Christophe Fergeau [Fri, 22 May 2015 13:51:35 +0000]
gconfig: Add precondition checks to some public entry points

It's currently possible to trigger a crash by passing eg NULL to these
functions. Better to return a prominent warning to the caller without

2 years agoBump version to 0.2.1
Zeeshan Ali (Khattak) [Mon, 18 May 2015 14:21:51 +0000]
Bump version to 0.2.1

3 years agogconfig: Add support for 'compat' storage volume node
Richa Sehgal [Sun, 12 Apr 2015 22:11:41 +0000]
gconfig: Add support for 'compat' storage volume node

This change adds support for setting of compat XML node in
libvirt-gconfig storage volumes target.

3 years agobuild-sys: Fix libtoolize detection in
Christophe Fergeau [Tue, 24 Mar 2015 09:35:20 +0000]
build-sys: Fix libtoolize detection in is currently checking for the libtool binary, but
it's libtoolize which is needed by autoreconf, not libtool.

These binaries are packaged separately on Debian/Ubuntu so this can
cause actual issues on some systems.

Bug reported by Frederic Peters

3 years agoSwitch over to using zanata for translation
Daniel P. Berrange [Wed, 18 Feb 2015 14:44:18 +0000]
Switch over to using zanata for translation

Remove obsolete transifex config and add zanata config,
re-generating all po files

3 years agoUpdate NEWS for 0.2.0 release v0.2.0
Daniel P. Berrange [Mon, 15 Dec 2014 15:46:09 +0000]
Update NEWS for 0.2.0 release

3 years agoFix build on win32 due to missing sys/socket.h
Daniel P. Berrange [Mon, 15 Dec 2014 16:17:05 +0000]
Fix build on win32 due to missing sys/socket.h

3 years agoAdd gvir_domain_open_graphics_fd()
Zeeshan Ali (Khattak) [Tue, 18 Nov 2014 16:50:45 +0000]
Add gvir_domain_open_graphics_fd()

Add binding for virDomainOpenGraphicsFD. If virDomainOpenGraphicsFD is
not available, it means we are dealing with older libvirt so we create
the socket pair ourselves if that is the case.

3 years agoRevert back deleted glib-specific warning options
Martin Kletzander [Thu, 13 Nov 2014 15:39:43 +0000]
Revert back deleted glib-specific warning options

Commit f525ba7796a2fd35bf55e88fb94459b2277fcd67 copied warning macros
from gnulib without keeping glib-specific settings.  This build-breaker
brings back those needed ones except unused-parameter, which is no
longer needed.

Signed-off-by: Martin Kletzander <>

3 years agoProperly mark unused parameters
Martin Kletzander [Thu, 13 Nov 2014 15:41:40 +0000]
Properly mark unused parameters

Signed-off-by: Martin Kletzander <>

3 years agom4: sync macros with libvirt
Michal Privoznik [Tue, 4 Nov 2014 13:01:08 +0000]
m4: sync macros with libvirt

The macros under the m4 directory are outdated a bit. When trying
to compile with newer gcc I see some errors:

make[2]: Entering directory '/home/zippy/work/libvirt/libvirt-glib.git/libvirt-glib'
CC libvirt_glib_1_0_la-libvirt-glib-error.lo
gcc: warning: switch '-Wmudflap' is no longer supported

Signed-off-by: Michal Privoznik <>

Zeeshan Ali (Khattak) [Mon, 29 Sep 2014 17:59:14 +0000]

Add missing enum type for keyboard input device.

3 years agoPost-release version bump to 0.2.0
Daniel P. Berrange [Wed, 20 Aug 2014 15:44:23 +0000]
Post-release version bump to 0.2.0

3 years agoUpdate NEWS for 0.1.9 release v0.1.9
Daniel P. Berrange [Wed, 20 Aug 2014 14:42:39 +0000]
Update NEWS for 0.1.9 release

Signed-off-by: Daniel P. Berrange <>

3 years agoRefresh translations from transifex
Daniel P. Berrange [Wed, 20 Aug 2014 14:42:19 +0000]
Refresh translations from transifex

Signed-off-by: Daniel P. Berrange <>

3 years agoGVirDomainSnapshot: Add async version of _delete
Timm Bäder [Tue, 19 Aug 2014 16:06:24 +0000]
GVirDomainSnapshot: Add async version of _delete

3 years agoGVirDomain: Add async version of _create_snapshot
Timm Bäder [Tue, 19 Aug 2014 16:06:23 +0000]
GVirDomain: Add async version of _create_snapshot

3 years agoGVirDomainSnapshot: Add async version of _revert_to
Timm Bäder [Wed, 20 Aug 2014 12:37:03 +0000]
GVirDomainSnapshot: Add async version of _revert_to

3 years agoGVirDomain: Fix some doc comments of the snapshot API
Timm Bäder [Tue, 19 Aug 2014 16:06:21 +0000]
GVirDomain: Fix some doc comments of the snapshot API

Fixes the following warnings from g-ir-scanner and some cosmetic issues:

libvirt-gobject-domain.c:1532: Warning: LibvirtGObject: unknown
annotation: transfer-none
libvirt-gobject-domain.c:1650: Error: LibvirtGObject: identifier not
found on the first line:

3 years agoGVirDomain: Add _get_has_current_snapshot
Timm Bäder [Fri, 8 Aug 2014 15:07:32 +0000]
GVirDomain: Add _get_has_current_snapshot

... which uses virDomainHasCurrentSnapshot to determine if the given
domain has a current snapshot or not.

3 years agoGVirDomainSnapshot: Add _set_config
Timm Bäder [Thu, 7 Aug 2014 10:20:15 +0000]
GVirDomainSnapshot: Add _set_config

... which is basically analogous to gvir_domain_set_config

3 years agoGVirDomainSnapshot: Add _revert_to
Timm Bäder [Sat, 2 Aug 2014 08:41:47 +0000]
GVirDomainSnapshot: Add _revert_to

Add a way to revert a domain to one of its snapshots.

3 years agoGVirDomainSnapshot: Add _get_is_current
Timm Bäder [Thu, 7 Aug 2014 10:20:13 +0000]
GVirDomainSnapshot: Add _get_is_current

Add a way to determine if the given GVirDomainSnapshot is the current
snapshot of its GVirDomain.

3 years agoGVirDomain: Add async version of _fetch_snapshots
Timm Bäder [Thu, 31 Jul 2014 20:16:23 +0000]
GVirDomain: Add async version of _fetch_snapshots

3 years agolibvirt-gobject-domain: Add _get_snapshots
Timm Bäder [Thu, 31 Jul 2014 20:16:22 +0000]
libvirt-gobject-domain: Add _get_snapshots

... which returns a GList of GVirDomainSnapshots, i.e. without any tree
structure or other relationship between the snapshots.

3 years agolibvirt-gobject-domain: Add _fetch_snapshots
Timm Bäder [Thu, 31 Jul 2014 20:16:21 +0000]
libvirt-gobject-domain: Add _fetch_snapshots

This function can be used to fetch the snapshots of a domain (according
to the given GVirDomainSnapshotListFlags) and save them in a
domain-internal GHashTable. A function to access them from outside will
be added in a later patch.

3 years agospec: Substitute minimum glib2 version from
Christophe Fergeau [Mon, 7 Jul 2014 12:22:14 +0000]
spec: Substitute minimum glib2 version from

This way we don't have to keep track of the minimum glib2 version we
need in 2 separate places.

Signed-off-by: Christophe Fergeau <>

3 years agogobject: Fix GEnum generation through glib-mkenums
Christophe Fergeau [Tue, 3 Jun 2014 09:11:00 +0000]
gobject: Fix GEnum generation through glib-mkenums

We were only passing libvirt-gobject-domain.h and
libvirt-gobject-connection.h through glib-mkenums, which causes it to
only generate GEnum information for enums found in these headers.
We want to do that for all enums defined in installed headers, so
passing all headers listed in libvirt_gobject_1_0_la_HEADERS is more

3 years agoAdd gvir_config_domain_cpu_set_model()
Zeeshan Ali (Khattak) [Fri, 4 Jul 2014 13:50:03 +0000]
Add gvir_config_domain_cpu_set_model()

Add a method to set model of domain CPU.

3 years agoAdd GVirConfigDomainCpuModel class
Zeeshan Ali (Khattak) [Fri, 4 Jul 2014 13:48:45 +0000]
Add GVirConfigDomainCpuModel class

Add a class to represent 'model' node under domain/cpu.