source: Daodan/MinGW/include/mgmtapi.h@ 1098

Last change on this file since 1098 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 1.8 KB
Line 
1/*
2 mgmtapi.h - Header file for the SNMP Management API
3
4 Written by Filip Navara <xnavara@volny.cz>
5
6 References (2003-08-25):
7 http://msdn.microsoft.com/library/en-us/snmp/snmp/snmp_reference.asp
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12*/
13
14#ifndef _MGMTAPI_H
15#define _MGMTAPI_H
16#if __GNUC__ >= 3
17#pragma GCC system_header
18#endif
19
20#ifndef _SNMP_H
21#include <snmp.h>
22#endif
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#define SNMP_MGMTAPI_TIMEOUT 40
29#define SNMP_MGMTAPI_SELECT_FDERRORS 41
30#define SNMP_MGMTAPI_TRAP_ERRORS 42
31#define SNMP_MGMTAPI_TRAP_DUPINIT 43
32#define SNMP_MGMTAPI_NOTRAPS 44
33#define SNMP_MGMTAPI_AGAIN 45
34#define SNMP_MGMTAPI_INVALID_CTL 46
35#define SNMP_MGMTAPI_INVALID_SESSION 47
36#define SNMP_MGMTAPI_INVALID_BUFFER 48
37#define MGMCTL_SETAGENTPORT 1
38
39#ifndef RC_INVOKED
40
41typedef PVOID LPSNMP_MGR_SESSION;
42
43BOOL WINSNMPAPI SnmpMgrClose(LPSNMP_MGR_SESSION);
44BOOL WINSNMPAPI SnmpMgrCtl(LPSNMP_MGR_SESSION,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD);
45BOOL WINSNMPAPI SnmpMgrGetTrap(AsnObjectIdentifier*,AsnNetworkAddress*,AsnInteger*,AsnInteger*,AsnTimeticks*,SnmpVarBindList*);
46BOOL WINSNMPAPI SnmpMgrGetTrapEx(AsnObjectIdentifier*,AsnNetworkAddress*,AsnNetworkAddress*,AsnInteger*,AsnInteger*,AsnOctetString*,AsnTimeticks*,SnmpVarBindList*);
47BOOL WINSNMPAPI SnmpMgrOidToStr(AsnObjectIdentifier*,LPSTR*);
48LPSNMP_MGR_SESSION WINSNMPAPI SnmpMgrOpen(LPSTR,LPSTR,INT,INT);
49INT WINSNMPAPI SnmpMgrRequest(LPSNMP_MGR_SESSION,BYTE,SnmpVarBindList*,AsnInteger*,AsnInteger*);
50BOOL WINSNMPAPI SnmpMgrStrToOid(LPSTR,AsnObjectIdentifier*);
51BOOL WINSNMPAPI SnmpMgrTrapListen(HANDLE*);
52
53#endif /* RC_INVOKED */
54
55#ifdef __cplusplus
56}
57#endif
58#endif
Note: See TracBrowser for help on using the repository browser.