• M
    virGetDomain: Set domain ID too · 5683b213
    Michal Privoznik 提交于
    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: NMichal Privoznik <mprivozn@redhat.com>
    5683b213
datatypes.h 35.1 KB