Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / agent / watcher.h
1 /*
2  * watcher.h 
3  */
4 #ifndef NETSNMP_WATCHER_H
5 #define NETSNMP_WATCHER_H
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #define WATCHER_FIXED_SIZE    0x01
12 #define WATCHER_MAX_SIZE      0x02
13
14 typedef struct netsnmp_watcher_info_s {
15     void     *data;
16     size_t    data_size;
17     size_t    max_size;
18     u_char    type;
19     int       flags;
20 } netsnmp_watcher_info;
21
22 int netsnmp_register_watched_instance( netsnmp_handler_registration *reginfo,
23                                        netsnmp_watcher_info         *winfo);
24 int netsnmp_register_watched_scalar(   netsnmp_handler_registration *reginfo,
25                                        netsnmp_watcher_info         *winfo);
26 int netsnmp_register_watched_timestamp(netsnmp_handler_registration *reginfo,
27                                        marker_t *timestamp);
28
29 #define WATCHER_HANDLER_NAME "watcher"
30
31 netsnmp_mib_handler  *netsnmp_get_watcher_handler(void);
32 netsnmp_watcher_info *netsnmp_create_watcher_info(void *, size_t, u_char, int);
33 Netsnmp_Node_Handler  netsnmp_watcher_helper_handler;
34
35 netsnmp_mib_handler  *netsnmp_get_watched_timestamp_handler(void);
36 Netsnmp_Node_Handler  netsnmp_watched_timestamp_handler;
37
38 #ifdef __cplusplus
39 };
40 #endif
41
42 #endif /** NETSNMP_WATCHER_H */