Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- src/util.c | 7 +++++++ src/util.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/src/util.c b/src/util.c index 2445ce0..6636d0a 100644 --- a/src/util.c +++ b/src/util.c @@ -69,6 +69,13 @@ virtDBusUtilSetLastVirtError(sd_bus_error *error) return sd_bus_error_set(error, "org.libvirt.Error", vir_error->message); } +int +virtDBusUtilSetError(sd_bus_error *error, + const char *message) +{ + return sd_bus_error_set(error, "org.libvirt.Error", message); +} + char * virtDBusUtilBusPathForVirDomain(virDomainPtr domain) { diff --git a/src/util.h b/src/util.h index 6d99841..cb8447d 100644 --- a/src/util.h +++ b/src/util.h @@ -19,6 +19,10 @@ virtDBusUtilMessageAppendTypedParameters(sd_bus_message *message, int virtDBusUtilSetLastVirtError(sd_bus_error *error); +int +virtDBusUtilSetError(sd_bus_error *error, + const char *message); + char * virtDBusUtilBusPathForVirDomain(virDomainPtr domain); -- 2.14.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list