and added files
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / agent / old_api.h
1 #ifndef OLD_API_H
2 #define OLD_API_H
3
4 #ifdef __cplusplus
5 extern          "C" {
6 #endif
7
8 #define OLD_API_NAME "old_api"
9
10 typedef struct netsnmp_old_api_info_s {
11     struct variable *var;
12     size_t          varsize;
13     size_t          numvars;
14
15     /*
16      * old stuff 
17      */
18     netsnmp_session *ss;
19     int             flags;
20 } netsnmp_old_api_info;
21
22 typedef struct old_opi_cache_s {
23     u_char         *data;
24     WriteMethod    *write_method;
25 } netsnmp_old_api_cache;
26
27 int             netsnmp_register_old_api(const char *moduleName,
28                                          struct variable *var,
29                                          size_t varsize,
30                                          size_t numvars,
31                                          oid * mibloc,
32                                          size_t mibloclen,
33                                          int priority,
34                                          int range_subid,
35                                          oid range_ubound,
36                                          netsnmp_session * ss,
37                                          const char *context,
38                                          int timeout, int flags);
39 Netsnmp_Node_Handler netsnmp_old_api_helper;
40
41 /*
42  * really shouldn't be used 
43  */
44 netsnmp_agent_session *netsnmp_get_current_agent_session(void);
45
46 #ifdef __cplusplus
47 }
48 #endif
49 #endif                          /* OLD_API_H */