This makes it clearer that the only possible error is out-of-memory,
so its use in ListQueuedOwners() is not leaking information to callers
that might not be allowed to know the difference between "doesn't exist"
and "exists but you are not allowed to know that".
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105656
}
else
{
- if (!bus_service_list_queued_owners (service,
- &base_names,
- error))
- goto failed;
+ if (!bus_service_list_queued_owners (service, &base_names))
+ {
+ BUS_SET_OOM (error);
+ goto failed;
+ }
}
_dbus_assert (base_names != NULL);
dbus_bool_t
bus_service_list_queued_owners (BusService *service,
- DBusList **return_list,
- DBusError *error)
+ DBusList **return_list)
{
DBusList *link;
oom:
_dbus_list_clear (return_list);
- BUS_SET_OOM (error);
return FALSE;
}
dbus_bool_t bus_service_get_allow_replacement (BusService *service);
const char* bus_service_get_name (BusService *service);
dbus_bool_t bus_service_list_queued_owners (BusService *service,
- DBusList **return_list,
- DBusError *error);
+ DBusList **return_list);
DBusConnection* bus_service_get_primary_owners_connection (BusService *service);
#endif /* BUS_SERVICES_H */