Modified to use new include file reactos/include/snmp.h to be committed shortly.
[reactos.git] / reactos / lib / snmpapi / snmpapi.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Sockets 2 Simple Network Management Protocol API DLL
4 * FILE: snmpapi.c
5 * PURPOSE: DLL entry
6 * PROGRAMMERS: Robert Dickenson (robd@reactos.org)
7 * REVISIONS:
8 * RDD August 18, 2002 Created
9 */
10 //#include "snmpapi.h"
11
12
13 #ifdef __GNUC__
14 #include <wsahelp.h>
15 #else
16 #include <winsock2.h>
17 #endif
18 #include <windows.h>
19
20 #ifdef __GNUC__
21 #define SNMP_FUNC_TYPE STDCALL
22 #endif
23 #include <snmp.h>
24 #include "debug.h"
25
26
27 #ifdef __GNUC__
28 #define EXPORT STDCALL
29 #else
30 #define EXPORT CALLBACK
31 #endif
32
33
34 #ifdef DBG
35
36 /* See debug.h for debug/trace constants */
37 DWORD DebugTraceLevel = MAX_TRACE;
38
39 #endif /* DBG */
40
41 /* To make the linker happy */
42 //VOID STDCALL KeBugCheck (ULONG BugCheckCode) {}
43
44
45 BOOL
46 EXPORT
47 DllMain(HANDLE hInstDll,
48 ULONG dwReason,
49 PVOID Reserved)
50 {
51 WSH_DbgPrint(MIN_TRACE, ("DllMain of snmpapi.dll\n"));
52
53 switch (dwReason) {
54 case DLL_PROCESS_ATTACH:
55 /* Don't need thread attach notifications
56 so disable them to improve performance */
57 DisableThreadLibraryCalls(hInstDll);
58 break;
59
60 case DLL_THREAD_ATTACH:
61 break;
62
63 case DLL_THREAD_DETACH:
64 break;
65
66 case DLL_PROCESS_DETACH:
67 break;
68 }
69 return TRUE;
70 }
71
72 ////////////////////////////////////////////////////////////////////////////////
73 /*
74 ? SnmpSvcAddrIsIpx
75 ? SnmpSvcAddrToSocket
76 ? SnmpSvcGetEnterpriseOID
77 ? SnmpTfxClose
78 ? SnmpTfxOpen
79 ? SnmpTfxQuery
80 ? SnmpUtilAnsiToUnicode
81 ? SnmpUtilUTF8ToUnicode
82 ? SnmpUtilUnicodeToAnsi
83 ? SnmpUtilUnicodeToUTF8
84 */
85 ////////////////////////////////////////////////////////////////////////////////
86
87 VOID
88 SNMP_FUNC_TYPE
89 SnmpSvcAddrIsIpx(void* unknown, void* unknown2)
90 {
91 UNIMPLEMENTED
92 }
93
94 VOID
95 SNMP_FUNC_TYPE
96 SnmpSvcAddrToSocket(void* unknown, void* unknown2)
97 {
98 UNIMPLEMENTED
99 }
100
101 VOID
102 SNMP_FUNC_TYPE
103 SnmpSvcGetEnterpriseOID(void* unknown, void* unknown2)
104 {
105 UNIMPLEMENTED
106 }
107
108 LPVOID
109 SNMP_FUNC_TYPE
110 SnmpUtilMemAlloc(UINT nBytes)
111 {
112 UNIMPLEMENTED
113 return NULL;
114 }
115
116 VOID
117 SNMP_FUNC_TYPE
118 SnmpUtilMemFree(LPVOID pMem)
119 {
120 UNIMPLEMENTED
121 }
122
123 LPVOID
124 SNMP_FUNC_TYPE
125 SnmpUtilMemReAlloc(LPVOID pMem, UINT nBytes)
126 {
127 UNIMPLEMENTED
128 return 0;
129 }
130
131 VOID
132 SNMP_FUNC_TYPE
133 SnmpSvcInitUptime()
134 {
135 UNIMPLEMENTED
136 }
137
138 DWORD
139 SNMP_FUNC_TYPE
140 SnmpSvcGetUptime()
141 {
142 UNIMPLEMENTED
143 return 0L;
144 }
145
146 VOID
147 SNMP_FUNC_TYPE
148 SnmpSvcSetLogLevel(INT nLogLevel)
149 {
150 switch (nLogLevel) {
151 case SNMP_LOG_SILENT:
152 break;
153 case SNMP_LOG_FATAL:
154 break;
155 case SNMP_LOG_ERROR:
156 break;
157 case SNMP_LOG_WARNING:
158 break;
159 case SNMP_LOG_TRACE:
160 break;
161 case SNMP_LOG_VERBOSE:
162 break;
163 }
164 UNIMPLEMENTED
165 }
166
167 VOID
168 SNMP_FUNC_TYPE
169 SnmpSvcSetLogType(INT nLogType)
170 {
171 switch (nLogType) {
172 case SNMP_OUTPUT_TO_CONSOLE:
173 break;
174 case SNMP_OUTPUT_TO_LOGFILE:
175 break;
176 case SNMP_OUTPUT_TO_DEBUGGER:
177 break;
178 }
179 UNIMPLEMENTED
180 }
181
182 VOID
183 SNMP_FUNC_TYPE
184 SnmpTfxClose(void* unknown, void* unknown2)
185 {
186 UNIMPLEMENTED
187 }
188
189 VOID
190 SNMP_FUNC_TYPE
191 SnmpTfxOpen(void* unknown, void* unknown2)
192 {
193 UNIMPLEMENTED
194 }
195
196 VOID
197 SNMP_FUNC_TYPE
198 SnmpTfxQuery(void* unknown, void* unknown2)
199 {
200 UNIMPLEMENTED
201 }
202
203 VOID
204 SNMP_FUNC_TYPE
205 SnmpUtilAnsiToUnicode(void* unknown, void* unknown2)
206 {
207 UNIMPLEMENTED
208 }
209
210 SNMPAPI
211 SNMP_FUNC_TYPE
212 SnmpUtilAsnAnyCpy(AsnAny *pAnyDst, AsnAny *pAnySrc)
213 {
214 UNIMPLEMENTED
215 return 0;
216 }
217
218 VOID
219 SNMP_FUNC_TYPE
220 SnmpUtilAsnAnyFree(AsnAny *pAny)
221 {
222 UNIMPLEMENTED
223 }
224
225 VOID
226 SNMP_FUNC_TYPE
227 SnmpUtilDbgPrint(INT nLogLevel, LPSTR szFormat, ...)
228 {
229 switch (nLogLevel) {
230 case SNMP_LOG_SILENT:
231 break;
232 case SNMP_LOG_FATAL:
233 break;
234 case SNMP_LOG_ERROR:
235 break;
236 case SNMP_LOG_WARNING:
237 break;
238 case SNMP_LOG_TRACE:
239 break;
240 case SNMP_LOG_VERBOSE:
241 break;
242 }
243 UNIMPLEMENTED
244 }
245
246 LPSTR
247 SNMP_FUNC_TYPE
248 SnmpUtilIdsToA(UINT *Ids, UINT IdLength)
249 {
250 UNIMPLEMENTED
251 return 0;
252 }
253
254 SNMPAPI
255 SNMP_FUNC_TYPE
256 SnmpUtilOctetsCmp(AsnOctetString *pOctets1, AsnOctetString *pOctets2)
257 {
258 UNIMPLEMENTED
259 return 0;
260 }
261
262 SNMPAPI
263 SNMP_FUNC_TYPE
264 SnmpUtilOctetsCpy(AsnOctetString *pOctetsDst, AsnOctetString *pOctetsSrc)
265 {
266 UNIMPLEMENTED
267 return 0;
268 }
269
270 VOID
271 SNMP_FUNC_TYPE
272 SnmpUtilOctetsFree(AsnOctetString *pOctets)
273 {
274 UNIMPLEMENTED
275 }
276
277 SNMPAPI
278 SNMP_FUNC_TYPE
279 SnmpUtilOctetsNCmp(AsnOctetString *pOctets1, AsnOctetString *pOctets2, UINT nChars)
280 {
281 UNIMPLEMENTED
282 return 0;
283 }
284
285 SNMPAPI
286 SNMP_FUNC_TYPE
287 SnmpUtilOidAppend(AsnObjectIdentifier *pOidDst, AsnObjectIdentifier *pOidSrc)
288 {
289 UNIMPLEMENTED
290 // return SNMP_BERAPI_OVERFLOW;
291 // return SNMP_MEM_ALLOC_ERROR;
292 return 0;
293 }
294
295
296 SNMPAPI
297 SNMP_FUNC_TYPE
298 SnmpUtilOidCmp(AsnObjectIdentifier *pOid1, AsnObjectIdentifier *pOid2)
299 {
300 UNIMPLEMENTED
301 return 0;
302 }
303
304 SNMPAPI
305 SNMP_FUNC_TYPE
306 SnmpUtilOidCpy(AsnObjectIdentifier *pOidDst, AsnObjectIdentifier *pOidSrc)
307 {
308 UNIMPLEMENTED
309 return 0;
310 }
311
312 VOID
313 SNMP_FUNC_TYPE
314 SnmpUtilOidFree(AsnObjectIdentifier *pOid)
315 {
316 UNIMPLEMENTED
317 }
318
319 SNMPAPI
320 SNMP_FUNC_TYPE
321 SnmpUtilOidNCmp(AsnObjectIdentifier *pOid1, AsnObjectIdentifier *pOid2, UINT nSubIds)
322 {
323 UNIMPLEMENTED
324 return 0;
325 }
326
327 LPSTR
328 SNMP_FUNC_TYPE
329 SnmpUtilOidToA(AsnObjectIdentifier *Oid)
330 {
331 UNIMPLEMENTED
332 return 0;
333 }
334
335 VOID
336 SNMP_FUNC_TYPE
337 SnmpUtilPrintAsnAny(AsnAny *pAny)
338 {
339 UNIMPLEMENTED
340 }
341
342 VOID
343 SNMP_FUNC_TYPE
344 SnmpUtilPrintOid(AsnObjectIdentifier *Oid)
345 {
346 UNIMPLEMENTED
347 }
348
349 VOID
350 SNMP_FUNC_TYPE
351 SnmpUtilUTF8ToUnicode(void* unknown, void* unknown2)
352 {
353 UNIMPLEMENTED
354 }
355
356 VOID
357 SNMP_FUNC_TYPE
358 SnmpUtilUnicodeToAnsi(void* unknown, void* unknown2)
359 {
360 UNIMPLEMENTED
361 }
362
363 VOID
364 SNMP_FUNC_TYPE
365 SnmpUtilUnicodeToUTF8(void* unknown, void* unknown2)
366 {
367 UNIMPLEMENTED
368 }
369
370 SNMPAPI
371 SNMP_FUNC_TYPE
372 SnmpUtilVarBindCpy(SnmpVarBind *pVbDst, SnmpVarBind *pVbSrc)
373 {
374 UNIMPLEMENTED
375 return 0;
376 }
377
378 VOID
379 SNMP_FUNC_TYPE
380 SnmpUtilVarBindFree(SnmpVarBind *pVb)
381 {
382 UNIMPLEMENTED
383 }
384
385 SNMPAPI
386 SNMP_FUNC_TYPE
387 SnmpUtilVarBindListCpy(SnmpVarBindList *pVblDst, SnmpVarBindList *pVblSrc)
388 {
389 UNIMPLEMENTED
390 return 0;
391 }
392
393 VOID
394 SNMP_FUNC_TYPE
395 SnmpUtilVarBindListFree(SnmpVarBindList *pVbl)
396 {
397 UNIMPLEMENTED
398 }
399
400 /* EOF */
401