net-snmp 5.7
mode_end_call.h
00001 /*
00002  * mode_end_call.h 
00003  */
00004 #ifndef MODE_END_CALL_H
00005 #define MODE_END_CALL_H
00006 
00007 #ifdef __cplusplus
00008 extern          "C" {
00009 #endif
00010 
00011 #define NETSNMP_MODE_END_ALL_MODES -999
00012 
00013 typedef struct netsnmp_mode_handler_list_s {
00014    struct netsnmp_mode_handler_list_s *next;
00015    int mode;
00016    netsnmp_mib_handler *callback_handler;
00017 } netsnmp_mode_handler_list;
00018 
00019 /*
00020  * The helper calls another handler after each mode has been
00021  * processed.
00022  */
00023 
00024 /* public functions */
00025 netsnmp_mib_handler *
00026 netsnmp_get_mode_end_call_handler(netsnmp_mode_handler_list *endlist);
00027 
00028 netsnmp_mode_handler_list *
00029 netsnmp_mode_end_call_add_mode_callback(netsnmp_mode_handler_list *endlist,
00030                                         int mode,
00031                                         netsnmp_mib_handler *callbackh);
00032 
00033 /* internal */
00034 Netsnmp_Node_Handler netsnmp_mode_end_call_helper;
00035 
00036 #ifdef __cplusplus
00037 }
00038 #endif
00039 #endif