apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject apr_os_dso_handle_{put,get}
Date Wed, 25 Apr 2001 05:31:54 GMT
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;
}


Mime
View raw message