1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /*------------------------------------------------------------------
18 These functions are to be called when the shared NLM starts and
19 stops. By using these functions instead of defining a main()
20 and calling ExitThread(TSR_THREAD, 0), the load time of the
21 shared NLM is faster and memory size reduced.
23 You may also want to override these in your own Apache module
24 to do any cleanup other than the mechanism Apache modules
26 ------------------------------------------------------------------*/
36 const char *loadDirPath,
37 size_t uninitializedDataLength,
39 int (*readRoutineP)( int conn, void *fileHandle, size_t offset,
40 size_t nbytes, size_t *bytesRead, void *buffer ),
41 size_t customDataOffset,
42 size_t customDataSize,
47 #pragma unused(cmdLine)
48 #pragma unused(loadDirPath)
49 #pragma unused(uninitializedDataLength)
50 #pragma unused(NLMFileHandle)
51 #pragma unused(readRoutineP)
52 #pragma unused(customDataOffset)
53 #pragma unused(customDataSize)
54 #pragma unused(messageCount)
55 #pragma unused(messages)
59 return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData);
62 void _NonAppStop( void )
67 int _NonAppCheckUnload( void )