Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 66332 invoked by uid 500); 1 Aug 2001 03:31:08 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 66321 invoked from network); 1 Aug 2001 03:31:08 -0000 Message-ID: <3B6777DB.7080500@cnet.com> Date: Tue, 31 Jul 2001 20:30:35 -0700 From: Ian Holsman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2+) Gecko/20010728 X-Accept-Language: en-us MIME-Version: 1.0 To: Justin Erenkrantz CC: Graham Leggett , APR Development Subject: Re: apr-util + LDAP: How to handle status codes References: <3B667733.21E8D733@sharp.fm> <20010731201159.N18358@ebuilt.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Justin Erenkrantz wrote: >On Tue, Jul 31, 2001 at 11:15:31AM +0200, Graham Leggett wrote: > >>Is this the right way to do things? Or should there be a mapping to >>APR_LDAP_* status codes from LDAP_* status codes? >> > >I'd suggest that we should map the APR_LDAP_* status codes from LDAP_*. >We can do this by allocating an offset. So, just do: > >apr_status_t status = ldap_fn_result_code + APR_LDAP_ERROR_START; > >or something like that. We have that precedent somewhere. How many >numbers would we need? I don't remember how many the LDAP library >defines. -- justin > would it be possible to have a apr_ldap_errstr( apr_status_t ) function which would convert the numbers into messages?