]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Rename tunable event constants
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 25 Sep 2014 16:48:01 +0000 (17:48 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 26 Sep 2014 09:58:15 +0000 (10:58 +0100)
commit0778c0be8deec25c8f040d4bdeddee50cbb26234
tree3eb826d94d4c086955a9659698eeb126e666efc4
parentc99f66ac4c831b2ff9116c2e2ca003cd3550bff8
Rename tunable event constants

For the new VIR_DOMAIN_EVENT_ID_TUNABLE event we have a bunch of
constants added

   VIR_DOMAIN_EVENT_CPUTUNE_<blah>
   VIR_DOMAIN_EVENT_BLKDEVIOTUNE_<blah>

This naming convention is bad for two reasons

  - There is no common prefix unique for the events to both
    relate them, and distinguish them from other event
    constants

  - The values associated with the constants were chosen
    to match the names used with virConnectGetAllDomainStats
    so having EVENT in the constant name is not applicable in
    that respect

This patch proposes renaming the constants to

    VIR_DOMAIN_TUNABLE_CPU_<blah>
    VIR_DOMAIN_TUNABLE_BLKDEV_<blah>

ie, given them a common VIR_DOMAIN_TUNABLE prefix.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/libvirt/libvirt.h.in
src/qemu/qemu_cgroup.c
src/qemu/qemu_driver.c