bjh 01/04/19 08:17:30
Modified: dso/os2 dso.c
Log:
Add OS/2 implementation of apr_os_dso_handle_put/get.
Mostly copied from Jeff's unix version.
Revision Changes Path
1.22 +24 -0 apr/dso/os2/dso.c
Index: dso.c
===================================================================
RCS file: /home/cvs/apr/dso/os2/dso.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- dso.c 2001/02/16 04:15:32 1.21
+++ dso.c 2001/04/19 15:17:28 1.22
@@ -54,6 +54,7 @@
#include "dso.h"
#include "apr_strings.h"
+#include "apr_portable.h"
#include <stdio.h>
#include <string.h>
@@ -135,6 +136,29 @@
strcat(message, ")");
apr_cpystrn(buffer, message, buflen);
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