summaryrefslogtreecommitdiff
path: root/dso/beos
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2001-04-29 22:03:43 +0000
committerDavid Reid <dreid@apache.org>2001-04-29 22:03:43 +0000
commit5ea8581669bf1a8ee35cd81125135c5a60530a81 (patch)
tree25bdfdea5d548ca0e2941c88d7875b19f2075190 /dso/beos
parentf598cc71eabfa54032d7e3a0473263b814a52dc2 (diff)
downloadapr-5ea8581669bf1a8ee35cd81125135c5a60530a81.tar.gz
More pools instead of contexts...
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61563 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/beos')
-rw-r--r--dso/beos/dso.c16
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;
}