summaryrefslogtreecommitdiff
path: root/agent/mibgroup/notification/snmpNotifyTable.h
blob: 18bf1bd31b0bb9bb84225f35a5e4d6d4b23cc1d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 * This file was generated by mib2c and is intended for use as a mib module
 * for the ucd-snmp snmpd agent. 
 */


#ifndef _MIBGROUP_SNMPNOTIFYTABLE_H
#define _MIBGROUP_SNMPNOTIFYTABLE_H


/*
 * we may use header_complex from the header_complex module 
 */


config_require(header_complex)
config_require(target)
config_add_mib(SNMP-NOTIFICATION-MIB)


    /*
     * our storage structure(s) 
     */
     struct snmpNotifyTable_data {

         char           *snmpNotifyName;
         size_t          snmpNotifyNameLen;
         char           *snmpNotifyTag;
         size_t          snmpNotifyTagLen;
         long            snmpNotifyType;
         long            snmpNotifyStorageType;
         long            snmpNotifyRowStatus;

     };




/*
 * enum definitions from the covered mib sections 
 */






#define SNMPNOTIFYTYPE_TRAP                      1
#define SNMPNOTIFYTYPE_INFORM                    2




/*
 * function prototypes 
 */


     void            init_snmpNotifyTable(void);
     void            shutdown_snmpNotifyTable(void);
     FindVarMethod   var_snmpNotifyTable;
     void            parse_snmpNotifyTable(const char *, char *);

     int             snmpNotifyTable_add(struct snmpNotifyTable_data
                                         *thedata);

#ifndef NETSNMP_NO_WRITE_SUPPORT
     WriteMethod     write_snmpNotifyTag;
     WriteMethod     write_snmpNotifyType;
     WriteMethod     write_snmpNotifyStorageType;
     WriteMethod     write_snmpNotifyRowStatus;
#endif /* !NETSNMP_NO_WRITE_SUPPORT */



#endif                          /* _MIBGROUP_SNMPNOTIFYTABLE_H */