libvirt/src/xenapi
Michal Privoznik 5683b21309 virGetDomain: Set domain ID too
So far our code is full of the following pattern:

  dom = virGetDomain(conn, name, uuid)
  if (dom)
      dom->id = 42;

There is no reasong why it couldn't be just:

  dom = virGetDomain(conn, name, uuid, id);

After all, client domain representation consists of tuple (name,
uuid, id).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2017-04-03 08:35:57 +02:00
..
xenapi_driver_private.h
xenapi_driver.c virGetDomain: Set domain ID too 2017-04-03 08:35:57 +02:00
xenapi_driver.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
xenapi_utils.c conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
xenapi_utils.h