]> granicus.if.org Git - apache/commitdiff
Added the .def files for building the external modules for NetWare. Also
authorBradley Nicholes <bnicholes@apache.org>
Fri, 2 Nov 2001 17:59:58 +0000 (17:59 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Fri, 2 Nov 2001 17:59:58 +0000 (17:59 +0000)
added the NLM startup code for NLMs that require Winsock support.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91729 13f79535-47bb-0310-9956-ffa450edef68

18 files changed:
modules/arch/netware/libprews.c [new file with mode: 0644]
modules/arch/netware/mod_auth_anon.def [new file with mode: 0644]
modules/arch/netware/mod_auth_dbm.def [new file with mode: 0644]
modules/arch/netware/mod_auth_digest.def [new file with mode: 0644]
modules/arch/netware/mod_cern_meta.def [new file with mode: 0644]
modules/arch/netware/mod_echo.def [new file with mode: 0644]
modules/arch/netware/mod_expires.def [new file with mode: 0644]
modules/arch/netware/mod_file_cache.def [new file with mode: 0644]
modules/arch/netware/mod_headers.def [new file with mode: 0644]
modules/arch/netware/mod_info.def [new file with mode: 0644]
modules/arch/netware/mod_mime_magic.def [new file with mode: 0644]
modules/arch/netware/mod_proxy.def [new file with mode: 0644]
modules/arch/netware/mod_rewrite.def [new file with mode: 0644]
modules/arch/netware/mod_speling.def [new file with mode: 0644]
modules/arch/netware/mod_status.def [new file with mode: 0644]
modules/arch/netware/mod_unique_id.def [new file with mode: 0644]
modules/arch/netware/mod_usertrack.def [new file with mode: 0644]
modules/arch/netware/mod_vhost_alias.def [new file with mode: 0644]

diff --git a/modules/arch/netware/libprews.c b/modules/arch/netware/libprews.c
new file mode 100644 (file)
index 0000000..efa475f
--- /dev/null
@@ -0,0 +1,54 @@
+/*------------------------------------------------------------------
+  These functions are to be called when the shared NLM starts and
+  stops.  By using these functions instead of defining a main()
+  and calling ExitThread(TSR_THREAD, 0), the load time of the
+  shared NLM is faster and memory size reduced.
+   
+  You may also want to override these in your own Apache module
+  to do any cleanup other than the mechanism Apache modules
+  provide.
+------------------------------------------------------------------*/
+#include <netware.h>
+//#include "stddef.h"
+#include "ws2nlm.h"
+
+int _NonAppStart
+(
+    void        *NLMHandle,
+    void        *errorScreen,
+    const char  *cmdLine,
+    const char  *loadDirPath,
+    size_t      uninitializedDataLength,
+    void        *NLMFileHandle,
+    int         (*readRoutineP)( int conn, void *fileHandle, size_t offset,
+                    size_t nbytes, size_t *bytesRead, void *buffer ),
+    size_t      customDataOffset,
+    size_t      customDataSize,
+    int         messageCount,
+    const char  **messages
+)
+{
+#pragma unused(cmdLine)
+#pragma unused(loadDirPath)
+#pragma unused(uninitializedDataLength)
+#pragma unused(NLMFileHandle)
+#pragma unused(readRoutineP)
+#pragma unused(customDataOffset)
+#pragma unused(customDataSize)
+#pragma unused(messageCount)
+#pragma unused(messages)
+
+    WSADATA wsaData;
+    
+    return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData);
+}
+
+void _NonAppStop( void )
+{
+    WSACleanup();
+}
+
+int  _NonAppCheckUnload( void )
+{
+       return 0;
+}
diff --git a/modules/arch/netware/mod_auth_anon.def b/modules/arch/netware/mod_auth_anon.def
new file mode 100644 (file)
index 0000000..ab6b138
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  auth_anon_module
diff --git a/modules/arch/netware/mod_auth_dbm.def b/modules/arch/netware/mod_auth_dbm.def
new file mode 100644 (file)
index 0000000..830f194
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  auth_dbm_module
diff --git a/modules/arch/netware/mod_auth_digest.def b/modules/arch/netware/mod_auth_digest.def
new file mode 100644 (file)
index 0000000..6a3aa08
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  auth_digest_module
diff --git a/modules/arch/netware/mod_cern_meta.def b/modules/arch/netware/mod_cern_meta.def
new file mode 100644 (file)
index 0000000..5638325
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  cern_meta_module
diff --git a/modules/arch/netware/mod_echo.def b/modules/arch/netware/mod_echo.def
new file mode 100644 (file)
index 0000000..694135a
--- /dev/null
@@ -0,0 +1,2 @@
+EXPORT  echo_module
+
diff --git a/modules/arch/netware/mod_expires.def b/modules/arch/netware/mod_expires.def
new file mode 100644 (file)
index 0000000..bc41663
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  expires_module
diff --git a/modules/arch/netware/mod_file_cache.def b/modules/arch/netware/mod_file_cache.def
new file mode 100644 (file)
index 0000000..8ab98cf
--- /dev/null
@@ -0,0 +1,2 @@
+EXPORT  file_cache_module
+
diff --git a/modules/arch/netware/mod_headers.def b/modules/arch/netware/mod_headers.def
new file mode 100644 (file)
index 0000000..2fe35a8
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  headers_module
diff --git a/modules/arch/netware/mod_info.def b/modules/arch/netware/mod_info.def
new file mode 100644 (file)
index 0000000..ce71cb3
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  info_module
diff --git a/modules/arch/netware/mod_mime_magic.def b/modules/arch/netware/mod_mime_magic.def
new file mode 100644 (file)
index 0000000..9530747
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  mime_magic_module
diff --git a/modules/arch/netware/mod_proxy.def b/modules/arch/netware/mod_proxy.def
new file mode 100644 (file)
index 0000000..6e51eed
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  proxy_module
diff --git a/modules/arch/netware/mod_rewrite.def b/modules/arch/netware/mod_rewrite.def
new file mode 100644 (file)
index 0000000..cfdcf6b
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  rewrite_module
diff --git a/modules/arch/netware/mod_speling.def b/modules/arch/netware/mod_speling.def
new file mode 100644 (file)
index 0000000..3d45a6a
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  speling_module
diff --git a/modules/arch/netware/mod_status.def b/modules/arch/netware/mod_status.def
new file mode 100644 (file)
index 0000000..9a5a32d
--- /dev/null
@@ -0,0 +1,2 @@
+EXPORT  status_module
+
diff --git a/modules/arch/netware/mod_unique_id.def b/modules/arch/netware/mod_unique_id.def
new file mode 100644 (file)
index 0000000..0b72c1e
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  unique_id_module
diff --git a/modules/arch/netware/mod_usertrack.def b/modules/arch/netware/mod_usertrack.def
new file mode 100644 (file)
index 0000000..7264c41
--- /dev/null
@@ -0,0 +1 @@
+EXPORT  usertrack_module
diff --git a/modules/arch/netware/mod_vhost_alias.def b/modules/arch/netware/mod_vhost_alias.def
new file mode 100644 (file)
index 0000000..574b85f
--- /dev/null
@@ -0,0 +1,2 @@
+EXPORT  vhost_alias_module
+