apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: apr_dso_make??
Date Wed, 18 Apr 2001 18:40:38 GMT
On Wed, 18 Apr 2001, David Reid wrote:

> Remind me again, why aren't we just going to add apr_dso_os_put (or whatever
> combination of the bits in the correct order is these days) and the _get
> version to use apr_os_dso_t's?  That *would* keep us in line with the rest
> of the APR API wouldn't it?

since apr_dso_handle_t is an incomplete type, we need to `make' an
apr_dso_handle_t:

apr_dso_handle_t *dso;
status = apr_dso_make(p, &dso, (void *)native_handle); /* will alloc *dso */

i suppose it should be:

status = apr_dso_make(p, &dso);
apr_os_dso_handle_put(dso, (void *)native_handle);

and perhaps:
void *os_handle = apr_os_dso_handle_get(dso);


Mime
View raw message