apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: apr-util + LDAP: How to handle status codes
Date Wed, 01 Aug 2001 10:49:22 GMT
Ian Holsman wrote:

> would it be possible to have a apr_ldap_errstr( apr_status_t ) function
> which would
> convert the numbers into messages?

There is already an apr_strerror() function to do this. Would it not
make sense to somehow have this function include the ldap_err2string()
function for errors in the LDAP range?

How would this be achieved when apr_strerror() is in APR, and the LDAP
stuff is in APR-util?

Could a callback not be introduced to apr_strerror() which allows a
specific function to be called to return string errors for certain
number ranges? The APR-util code would then set this callback function
to point at ldap_err2string()?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."
Mime
View raw message