// LCOV_EXCL_START void init_ituAlarmTable(AlarmTableDefs& defs) { if (initialize_table_ituAlarmTable() == SNMP_ERR_NOERROR) { ituAlarmTable_insert_defs(defs); } }
/************************************************************ * * Initializes the ituAlarmTable module */ void init_ituAlarmTable(void) { AlarmTableDefs& defs = AlarmTableDefs::get_instance(); if (initialize_table_ituAlarmTable() == SNMP_ERR_NOERROR) { for (AlarmTableDefsIterator it = defs.begin(); it != defs.end(); it++) { ituAlarmTable_context* ctx = ituAlarmTable_create_row_context((char*) "", it->index(), it->severity()); if (ctx) { ctx->_alarm_table_def = &(*it); CONTAINER_INSERT(cb.container, ctx); } } } }