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