apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: apr_dbd: a generic SQL wrapper
Date Fri, 10 Dec 2004 05:39:31 GMT
On Fri, 10 Dec 2004, Branko ^Libej wrote:

> Nick Kew wrote:
> >/* These are opaque structs.  Instantiation is up to each backend */
> >typedef struct apr_dbd_t apr_dbd_t;
> >typedef struct apr_dbd_transaction apr_dbd_transaction;
> >typedef struct apr_dbd_results apr_dbd_results;
> >typedef struct apr_dbd_row apr_dbd_row;
> >typedef struct apr_dbd_prepared apr_dbd_prepared;
> >#endif
> >
> >
> If these are truly internal, they shouldn't be declared in the public
> header, even #ifdefed out. That's a small nit, but I thought I'd mention
> ti since it leaped out at me.

They're not internal.  Applications need to know them all to pass to
functions in the API.  It's the instantiations that are internal.

The #ifndef is because *drivers* have to declare them before
#including apr_dbd.h.

Nick Kew

View raw message