summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-04-19 15:17:28 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-04-19 15:17:28 +0000
commit883eb2bbf1d9074c9dfcc7c8bafd88d4a73c4618 (patch)
tree8817c2bb10f73873f0a1f2e28a9cb219c26d0183 /dso
parentcb387df36ab9deb3489bb003cb2da99c354c2fbd (diff)
downloadlibapr-883eb2bbf1d9074c9dfcc7c8bafd88d4a73c4618.tar.gz
Add OS/2 implementation of apr_os_dso_handle_put/get.
Mostly copied from Jeff's unix version. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61539 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r--dso/os2/dso.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/dso/os2/dso.c b/dso/os2/dso.c
index 16ae6693f..7c910c33a 100644
--- a/dso/os2/dso.c
+++ b/dso/os2/dso.c
@@ -54,6 +54,7 @@
#include "dso.h"
#include "apr_strings.h"
+#include "apr_portable.h"
#include <stdio.h>
#include <string.h>
@@ -137,4 +138,27 @@ 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;
+ (*aprdso)->load_error = APR_SUCCESS;
+ (*aprdso)->failed_module = NULL;
+ 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