A function calls sd_bus_call_method
which accepts ...
as part of it's parameters. This function kicks up a authentication box when running unit tests so I have created an override-able call_sd_bus_call_method
that only calls the underlying sd_bus_call_method
. However how do I pass on the variadic parameters?
int Class::call_sd_bus_call_method(sd_bus *bus, const char *destination,
const char *path, const char *interface,
const char *member, sd_bus_error *ret_error,
sd_bus_message **reply, const char *types,
...) {
return sd_bus_call_method(bus, destination, path, interface, member, ret_error, reply, types, ...); // this causes an error: `expected primary-expression before '...' token.
}