summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authordreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-04-22 21:05:41 +0000
committerdreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-04-22 21:05:41 +0000
commit4472875156f2f628e1de668a874b72609eee3cc0 (patch)
treea5798544103cb76d171fce6fba7fee973d29d514 /dso
parent2795ac941bf62cf5b53f0829ee17fabf43459264 (diff)
downloadlibapr-4472875156f2f628e1de668a874b72609eee3cc0.tar.gz
Add the apr_os_dso_handle_get/set for BeOS and some other pieces of tidying up
to remove some errors as the handle is an integer not a pointer. Also add the include to apr_portable.h that I missed as pointed out by Peter Schultz. Submitted by: Peter Schultz Reviewed by: David Reid <dreid@apache.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r--dso/beos/dso.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/dso/beos/dso.c b/dso/beos/dso.c
index e6764944a..7b578c31a 100644
--- a/dso/beos/dso.c
+++ b/dso/beos/dso.c
@@ -53,6 +53,7 @@
*/
#include "beos/dso.h"
+#include "apr_portable.h"
#if APR_HAS_DSO
@@ -60,9 +61,9 @@ static apr_status_t dso_cleanup(void *thedso)
{
apr_dso_handle_t *dso = thedso;
- if (dso->handle != NULL && unload_add_on(dso->handle) < B_NO_ERROR)
+ if (dso->handle > 0 && unload_add_on(dso->handle) < B_NO_ERROR)
return APR_EINIT;
- dso->handle = NULL;
+ dso->handle = -1;
return APR_SUCCESS;
}
@@ -112,4 +113,21 @@ APR_DECLARE(const char *) apr_dso_error(apr_dso_handle_t *dso, char *buffer, apr
return buffer;
}
+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;
+}
+
#endif