Debian Codegraph @

agent/mibgroup/deliver/deliverByNotify.h

raw
1 #ifndef DELIVERBYNOTIFY_H
2 #define DELIVERBYNOTIFY_H 1
3
4 #ifdef TIME_WITH_SYS_TIME
5 # include <sys/time.h>
6 # include <time.h>
7 #else
8 # ifdef HAVE_SYS_TIME_H
9 # include <sys/time.h>
10 # else
11 # include <time.h>
12 # endif
13 #endif
14
15 config_add_mib(NET-SNMP-PERIODIC-NOTIFY-MIB);
16
17 void init_deliverByNotify(void);
18
19 SNMPAlarmCallback deliver_execute;
20
21 #define NETSNMP_DELIVER_NO_PERIOD_OID 0x01
22 #define NETSNMP_DELIVER_NO_MSG_COUNTS 0x02
23
24 /* implementation details */
25 typedef struct deliver_by_notify_s {
26 int frequency;
27 time_t last_run;
28 time_t next_run;
29 oid *target;
30 size_t target_len;
31 int max_packet_size;
32 int flags;
33 } deliver_by_notify;
34
35 int calculate_time_until_next_run(deliver_by_notify *it, time_t *now);
36
37 #endif /* deliverByNotify_h */