diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-29 22:03:43 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-29 22:03:43 +0000 |
commit | ff54eecd1785fe125090b7825cbf98f48adf494d (patch) | |
tree | 25bdfdea5d548ca0e2941c88d7875b19f2075190 /dso | |
parent | 2ea1c8a20dcd69bc250484f80806a90bfeb1c1d7 (diff) | |
download | libapr-ff54eecd1785fe125090b7825cbf98f48adf494d.tar.gz |
More pools instead of contexts...
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61563 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r-- | dso/beos/dso.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dso/beos/dso.c b/dso/beos/dso.c index 5a4b58235..5ded23b15 100644 --- a/dso/beos/dso.c +++ b/dso/beos/dso.c @@ -62,32 +62,32 @@ static apr_status_t dso_cleanup(void *thedso) apr_dso_handle_t *dso = thedso; if (dso->handle > 0 && unload_add_on(dso->handle) < B_NO_ERROR) - return APR_EINIT; + return APR_EINIT; dso->handle = -1; return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle, const char *path, - apr_pool_t *ctx) +APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle, + const char *path, apr_pool_t *pool) { image_id newid; if((newid = load_add_on(path)) < B_NO_ERROR) return APR_EINIT; - *res_handle = apr_pcalloc(ctx, sizeof(*res_handle)); + *res_handle = apr_pcalloc(pool, sizeof(*res_handle)); (*res_handle)->handle = newid; - (*res_handle)->cont = ctx; + (*res_handle)->pool = pool; - apr_pool_cleanup_register(ctx, *res_handle, dso_cleanup, apr_pool_cleanup_null); + apr_pool_cleanup_register(pool, *res_handle, dso_cleanup, apr_pool_cleanup_null); return APR_SUCCESS; } APR_DECLARE(apr_status_t) apr_dso_unload(apr_dso_handle_t *handle) { - return apr_pool_cleanup_run(handle->cont, handle, dso_cleanup); + return apr_pool_cleanup_run(handle->pool, handle, dso_cleanup); } APR_DECLARE(apr_status_t) apr_dso_sym(apr_dso_handle_sym_t *ressym, apr_dso_handle_t *handle, @@ -119,7 +119,7 @@ APR_DECLARE(apr_status_t) apr_os_dso_handle_put(apr_dso_handle_t **aprdso, { *aprdso = apr_pcalloc(pool, sizeof **aprdso); (*aprdso)->handle = osdso; - (*aprdso)->cont = pool; + (*aprdso)->pool = pool; return APR_SUCCESS; } |