You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Doug MacEachern <do...@covalent.net> on 2001/04/25 07:31:54 UTC

apr_os_dso_handle_{put,get}

cool, apr_os_dso_handle_put/apr_dso_unload is working.
i wonder if there should be just one version of these 2 functions, since
apr_os_dso_handle_t has been introduced, they should be exactly the same
for all platforms (functions below from unix/dso.c)
maybe in a new file apr/dso/apr_dso.c, that is linked in with libapr ?

APR_DECLARE(apr_status_t) apr_os_dso_handle_put(apr_dso_handle_t **aprdso,
                                                apr_os_dso_handle_t osdso,
                                                apr_pool_t *pool)
{
    *aprdso = apr_pcalloc(pool, sizeof **aprdso);
    (*aprdso)->handle = osdso;
    (*aprdso)->cont = pool;
    return APR_SUCCESS;
}

APR_DECLARE(apr_status_t) apr_os_dso_handle_get(apr_os_dso_handle_t *osdso,
                                                apr_dso_handle_t *aprdso)
{
    *osdso = aprdso->handle;
    return APR_SUCCESS;
}