[libvirt] [PATCH 1/2] util: adding virHasLastError and virGetLastErrorCode/Domain