mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
Add virDBusMessage(Encode,Decode) stubs
Commit 834c9c94 introduced virDBusMessageEncode and virDBusMessageDecode functions, however corresponding stubs were not added to !WITH_DBUS section, therefore 'make check' started to fail when compiled w/out dbus support like that: Expected symbol virDBusMessageDecode is not in ELF library
This commit is contained in:
parent
7729a16814
commit
ac26b2b0e8
@ -1222,4 +1222,22 @@ int virDBusMessageRead(DBusMessage *msg ATTRIBUTE_UNUSED,
|
||||
return -1;
|
||||
}
|
||||
|
||||
int virDBusMessageEncode(DBusMessage* msg ATTRIBUTE_UNUSED,
|
||||
const char *types ATTRIBUTE_UNUSED,
|
||||
...)
|
||||
{
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s", _("DBus support not compiled into this binary"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
int virDBusMessageDecode(DBusMessage* msg ATTRIBUTE_UNUSED,
|
||||
const char *types ATTRIBUTE_UNUSED,
|
||||
...)
|
||||
{
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s", _("DBus support not compiled into this binary"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* ! WITH_DBUS */
|
||||
|
Loading…
x
Reference in New Issue
Block a user