/* * Note: this file originally auto-generated by mib2c using * version : 1.25 $ of : mfd-top.m2c,v $ * * $Id$ */ /** \mainpage MFD helper for ifTable * * \section intro Introduction * Introductory text. * */ /* * standard Net-SNMP includes */ #include #include #include /* * include our parent header */ #include "ifTable.h" #include #include "ifTable_interface.h" oid ifTable_oid[] = { IFTABLE_OID }; int ifTable_oid_size = OID_LENGTH(ifTable_oid); void initialize_table_ifTable(void); /** * Initializes the ifTable module */ void init_ifTable(void) { DEBUGMSGTL(("verbose:ifTable:init_ifTable", "called\n")); /* * here we initialize all the tables we're planning on supporting */ if (should_init("ifTable")) initialize_table_ifTable(); } /** * Initialize the table ifTable * (Define its contents and how it's structured) */ void initialize_table_ifTable(void) { ifTable_registration_ptr user_context; u_long flags; DEBUGMSGTL(("verbose:ifTable:initialize_table_ifTable", "called\n")); /* * if you'd like to pass in a pointer to some data for this * table, allocate or set it up here. */ user_context = NULL; /* * No support for any flags yet, but in the future you would * set any flags here. */ flags = 0; /* * call interface initialization code */ _ifTable_initialize_interface(user_context, flags); } /** * pre-request callback * * * @retval MFD_SUCCESS : success. * @retval MFD_ERROR : other error */ int ifTable_pre_request(ifTable_registration_ptr user_context) { DEBUGMSGTL(("verbose:ifTable_pre_request", "called\n")); /* * TODO: * pre-request setup */ return MFD_SUCCESS; } /** * post-request callback * * * @retval MFD_SUCCESS : success. * @retval MFD_ERROR : other error (ignored) */ int ifTable_post_request(ifTable_registration_ptr user_context) { DEBUGMSGTL(("verbose:ifTable_post_request", "called\n")); /* * TODO: * post-request cleanup */ return MFD_SUCCESS; } /** @{ */