Safe to call _dbus_validate_bus_name()?
Michael 'Mickey' Lauer
mickey at vanille-media.de
Thu Mar 4 23:50:40 PST 2010
Am Freitag, den 05.03.2010, 15:39 +0800 schrieb Soh Kam Yung:
> I'm in a charge of a library that wraps about libdbus.
> There has been a request for my wrapper library to detect invalid dbus
> bus names that don't meet the dbus specification
> Currently, my library causes an assert error when it calls
> dbus_bus_request_name() with an invalid name. Ideally, I should
> detect the invalid bus name and return an error to the caller.
That has been bothering myself as well; first off, a library should
_never_ ever abort(), second, since the function is already available,
it should be exposed to clients. Same goes for the path validation, btw.
More information about the dbus