apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@cnet.com>
Subject Re: apr-util + LDAP: How to handle status codes
Date Wed, 01 Aug 2001 15:08:31 GMT
On 01 Aug 2001 03:49:22 -0700, Graham Leggett wrote:
> 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()?

I mentioned this a while back 
(as I too would like 1 apr_strerror to register callbacks) but 
the consensus was that each library should take care of it self

so I didn't proceed with a patch
> 
> Regards,
> Graham
> -- 
> -----------------------------------------
> minfrin@sharp.fm		"There's a moon
> 					over Bourbon Street
> 						tonight..."
-- 
Ian Holsman
Performance Measurement & Analysis
CNET Networks    -    415 364-8608


Mime
View raw message