📄 u_cevn.c
字号:
for (j = 0; j < rsp_ptr->num_of_modifiers; j++) { printf ("\n Modifier : %d", j+1); print_modifier (mod_ptr); mod_ptr++; if ((j+1) < rsp_ptr->num_of_modifiers) { printf ("\n\n Press return to continue, x to exit "); ch = get_a_char (); if (ch == 'x' || ch == 'X') j = rsp_ptr->num_of_modifiers; /* exit selected */ } } } } conf_info_wait (); } /* take care of continuous send var */ resp_rcvd = 1; /* set response received flag */ rep_count++; /* increment number of reps counter */ }#endif/************************************************************************//* MP REPORT EVENT ACTION STATUS *//************************************************************************/#if MMS_REPEAS_EN & REQ_ENST_VOID u_mp_repeas_conf (MMSREQ_PEND *req_ptr) {REPEAS_RESP_INFO *rsp_ptr; if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Report Event Action Status "); if (req_ptr->resp_err) list_err_info (req_ptr); else { rsp_ptr = (REPEAS_RESP_INFO *) req_ptr->resp_info_ptr; printf ("\n Number of Event Enrollments : %lu", rsp_ptr->num_of_ev_enroll); } conf_info_wait (); } /* take care of continuous send var */ resp_rcvd = 1; /* set response received flag */ rep_count++; /* increment number of reps counter */ }#endif/************************************************************************//* MP DEFINE EVENT ENROLLMENT *//************************************************************************/#if MMS_DEFEE_EN & REQ_ENST_VOID u_mp_defee_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Define Event Enrollment "); if (req_ptr->resp_err) list_err_info (req_ptr); conf_info_wait (); } /* take care of continuous send var */ resp_rcvd = 1; /* set response received flag */ rep_count++; /* increment number of reps counter */ }#endif/************************************************************************//* MP DELETE EVENT ENROLLMENT *//************************************************************************/#if MMS_DELEE_EN & REQ_ENST_VOID u_mp_delee_conf (MMSREQ_PEND *req_ptr) {DELEE_RESP_INFO *rsp_ptr; if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Delete Event Enrollment "); if (req_ptr->resp_err) list_err_info (req_ptr); else { rsp_ptr = (DELEE_RESP_INFO *) req_ptr->resp_info_ptr; printf ("\n Canditates Not Deleted : %lu",rsp_ptr->cand_not_deleted); } conf_info_wait (); } /* take care of continuous send var */ resp_rcvd = 1; /* set response received flag */ rep_count++; /* increment number of reps counter */ }#endif/************************************************************************//* MP GET EVENT ENROLLMENT ATTRIBUTES *//************************************************************************/#if MMS_GETEEA_EN & REQ_ENST_VOID u_mp_geteea_conf (MMSREQ_PEND *req_ptr) {GETEEA_RESP_INFO *rsp_ptr;EVENT_ENROLLMENT *ee_ptr;ST_INT i, ch; if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Get Event Enrollment Attributes "); if (req_ptr->resp_err) list_err_info (req_ptr); else { rsp_ptr = (GETEEA_RESP_INFO *) req_ptr->resp_info_ptr; ee_ptr = (EVENT_ENROLLMENT *) (rsp_ptr + 1); if (rsp_ptr->num_of_evenroll > 0) { printf ("\n\n Press return to continue"); ch = get_a_char (); CLEARSCR; } else printf ("\n"); printf (" Event Enrollments : %d",rsp_ptr->num_of_evenroll); printf ("\n More Follows : "); if (rsp_ptr->more_follows) printf ("YES "); else printf ("NO "); for (i = 0; i < rsp_ptr->num_of_evenroll; i++, ee_ptr++) { printf ("\n%d) Event Enrollment Name : ", i+1); print_objname (&ee_ptr->evenroll_name); printf ("\n Event Condition Name : "); if (ee_ptr->evcon_name_tag == 0) print_objname (&ee_ptr->evcon_name); else if (ee_ptr->evcon_name_tag == 1) printf ("Undefined"); else printf ("Invalid Tag"); printf ("\n Event Action Name : "); if (ee_ptr->evact_name_pres) { if (ee_ptr->evact_name_tag == 0) print_objname (&ee_ptr->evact_name); else if (ee_ptr->evact_name_tag == 1) printf ("Undefined"); else printf ("%d, Invalid Tag", ee_ptr->evact_name_tag); } else printf ("Not Present"); printf ("\n Client Application : "); if (ee_ptr->client_app_pres) print_asn1_app_ref (ee_ptr->client_app, ee_ptr->client_app_len); else printf ("Not Present"); printf ("\n MMS Deletable : "); if (ee_ptr->mms_deletable) printf ("YES"); else printf ("NO"); printf ("\n Event Enrollment Class: %d, ", ee_ptr->ee_class); switch (ee_ptr->ee_class) { case 0 : printf ("modifier"); break; case 1 : printf ("notification"); break; default : printf ("invalid class"); break; } printf ("\n Duration : %d, ", ee_ptr->duration); switch (ee_ptr->duration) { case 0 : printf ("current"); break; case 1 : printf ("permanent"); break; default : printf ("invalid duration"); break; } printf ("\n Invoke Id : "); if (ee_ptr->invoke_id_pres) printf ("%ld", ee_ptr->invoke_id); else printf ("Not present"); printf ("\n Rem Acceptable Delay : "); if (ee_ptr->rem_acc_delay_pres) printf ("%ld", ee_ptr->rem_acc_delay); else printf ("Not present"); printf ("\n Additional Detail : "); if (ee_ptr->addl_detail_pres) list_bytes (ee_ptr->addl_detail, ee_ptr->addl_detail_len); else printf ("Not present"); printf ("\n Ack Event Cond Name : "); if (ee_ptr->ackec_name_pres) { if (ee_ptr->ackec_name_tag == 0) print_objname (&ee_ptr->ackec_name); else if (ee_ptr->ackec_name_tag == 1) printf ("Undefined"); else printf ("Invalid Tag"); } else printf ("Not Present"); if ((i + 1) < rsp_ptr->num_of_evenroll) { printf ("\n\n Press return to continue, x to exit"); ch = get_a_char (); if (ch == 'x' || ch == 'X') i = rsp_ptr->num_of_evenroll; /* exit selected */ } } } conf_info_wait (); } /* take care of continuous send var */ resp_rcvd = 1; /* set response received flag */ rep_count++; /* increment number of reps counter */ }#endif/************************************************************************//* MP REPORT EVENT ENROLLMENT STATUS *//************************************************************************/#if MMS_REPEES_EN & REQ_ENST_VOID u_mp_repees_conf (MMSREQ_PEND *req_ptr) {REPEES_RESP_INFO *rsp_ptr;ST_INT ch; if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Report Event Enrollment Status "); if (req_ptr->resp_err) list_err_info (req_ptr); else { rsp_ptr = (REPEES_RESP_INFO *) req_ptr->resp_info_ptr; printf ("\n\n Press return to continue"); ch = get_a_char (); CLEARSCR; printf ("\n Event Cond Transitions : %02x",rsp_ptr->ec_transitions); printf ("\n Idle to Disabled : "); if (rsp_ptr->ec_transitions & 0x01) printf ("set "); else printf ("not set "); printf ("\n Active to Disabled : "); if (rsp_ptr->ec_transitions & 0x02) printf ("set "); else printf ("not set "); printf ("\n Disabled to Idle : "); if (rsp_ptr->ec_transitions & 0x04) printf ("set "); else printf ("not set "); printf ("\n Active to Idle : "); if (rsp_ptr->ec_transitions & 0x08) printf ("set "); else printf ("not set "); printf ("\n Disabled to Active : "); if (rsp_ptr->ec_transitions & 0x10) printf ("set "); else printf ("not set "); printf ("\n Idle to Active : "); if (rsp_ptr->ec_transitions & 0x20) printf ("set "); else printf ("not set "); printf ("\n Any to Deleted : "); if (rsp_ptr->ec_transitions & 0x40) printf ("set "); else printf ("not set "); printf ("\n Notification Lost : "); if (rsp_ptr->not_lost) printf ("YES "); else printf ("NO "); printf ("\n Duration : %d, ", rsp_ptr->duration); switch (rsp_ptr->duration) { case 0 : printf ("current"); break; case 1 : printf ("permanent"); break; default : printf ("invalid duration"); break; } printf ("\n Alarm Ack Rule : "); if (rsp_ptr->alarm_ack_rule_pres) { printf ("%d, ", rsp_ptr->alarm_ack_rule); switch (rsp_ptr->alarm_ack_rule) { case 0 : printf ("none"); break; case 1 : printf ("simple"); break; case 2 : printf ("ack active"); break; case 3 : printf ("ack all"); break; default: printf ("invalid ack rule"); break; } } else printf ("Not Present"); printf ("\n Current State : %d, ", rsp_ptr->cur_state); switch (rsp_ptr->cur_state) { case 0 : printf ("disabled"); break; case 1 : printf ("idle"); break; case 2 : printf ("active"); break; case 3 : printf ("active no ack a"); break; case 4 : printf ("idle no ack i"); break; case 5 : printf ("idle no ack a"); break; case 6 : printf ("idle-acked"); break; case 7 : printf ("active-acked"); break; default : printf ("invalid state code"); break; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -