net-snmp 5.7
|
00001 #ifndef OLD_API_H 00002 #define OLD_API_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 #define OLD_API_NAME "old_api" 00009 00010 typedef struct netsnmp_old_api_info_s { 00011 struct variable *var; 00012 size_t varsize; 00013 size_t numvars; 00014 00015 /* 00016 * old stuff 00017 */ 00018 netsnmp_session *ss; 00019 int flags; 00020 } netsnmp_old_api_info; 00021 00022 typedef struct old_opi_cache_s { 00023 u_char *data; 00024 WriteMethod *write_method; 00025 } netsnmp_old_api_cache; 00026 00027 int netsnmp_register_old_api(const char *moduleName, 00028 struct variable *var, 00029 size_t varsize, 00030 size_t numvars, 00031 const oid * mibloc, 00032 size_t mibloclen, 00033 int priority, 00034 int range_subid, 00035 oid range_ubound, 00036 netsnmp_session * ss, 00037 const char *context, 00038 int timeout, int flags); 00039 Netsnmp_Node_Handler netsnmp_old_api_helper; 00040 00041 /* 00042 * really shouldn't be used 00043 */ 00044 netsnmp_agent_session *netsnmp_get_current_agent_session(void); 00045 00046 #ifdef __cplusplus 00047 } 00048 #endif 00049 #endif /* OLD_API_H */