📄 u_indic.c
字号:
/************************************************************************//* SISCO SOFTWARE MODULE HEADER *****************************************//************************************************************************//* (c) Copyright Systems Integration Specialists Company, Inc., *//* 1986 - 1997, All Rights Reserved. *//* *//* MODULE NAME : u_indic.c *//* PRODUCT(S) : MMSEASE *//* *//* MODULE DESCRIPTION : *//* This module contains user defined code to service indications. *//* These functions are invoked from the 'mms_ind_serve' function, *//* and should perform the request action. *//* *//* GLOBAL FUNCTIONS DEFINED IN THIS MODULE : *//* *//* MODIFICATION LOG : *//* Date Who Rev Comments *//* -------- --- ------ ------------------------------------------- *//* 04/15/97 DSF 7.00 MMSEASE 7.0 release. See MODL70.DOC for *//* history. *//************************************************************************/#include "glbtypes.h"#include "sysincs.h"#include "mms_usr.h"#include "mms_pevn.h" /* for modifier structure */#include "userdefs.h"#include "mmsop_en.h"#include "gvaldefs.h"#include "scrndefs.h"#include "fkeydefs.h"/************************************************************************//* For debug version, use a static pointer to avoid duplication of *//* __FILE__ strings. *//************************************************************************/#ifdef DEBUG_SISCOstatic ST_CHAR *thisFileName = __FILE__;#endif/************************************************************************//************************************************************************//* INDICATION INFO PRINT *//************************************************************************//* indic_info_print *//* Given a indication pointer and string, print the info. *//************************************************************************/ST_VOID indic_info_print (MMSREQ_IND *req_info, ST_CHAR *str) {MODIFIER *mod_ptr;ST_INT i; if (mms_debug_sel & MMS_LOG_USR_IND) { CLEARSCR; printf ("\n MMS REQUEST RECEIVED\n"); printf ("\n Time Received : %s",ctime (&req_info -> ind_time)); printf ("\n Channel = %d",req_info -> chan); printf ("\n Context = %02x",req_info -> context); printf ("\n Invoke ID = %lu",req_info -> id); printf ("\n Opcode = %u",req_info -> op); if (req_info->mods.info_pres) { for (i = 0; i < req_info->mods.num_of_mods; i++) { mod_ptr = req_info->mods.mod_list_ptr + i; printf ("\n Modifier %d",i); print_modifier (mod_ptr); } } if (req_info->cs.cs_pres) { printf ("\n Companion Standard Information Present :\n"); list_bytes (req_info->cs.cs_ptr,req_info->cs.cs_len); } if (req_info -> req_info_pres) { printf ("\n Operation Specific Information Present"); } else printf ("\n No Information Present"); printf ("\n\n Operation is : %s",str); } }/************************************************************************//* indic_info_wait *//* After info print, let the user see it *//************************************************************************/ST_VOID indic_info_wait (ST_VOID) { if (mms_debug_sel & MMS_LOG_USR_IND) { wait_msg (""); /* just wait here */ (*menu_set_fun)(); /* restore menu */ } }/************************************************************************//* indic_info *//* After info prints, don't wait restore the menu. Call this function *//* when the service asks questions. Program flow stops because the *//* user has to supply some answers. This function is called in place *//* of indic_info_wait to avoid pressing extra keys. *//************************************************************************/ST_VOID indic_info (ST_VOID) { if (mms_debug_sel & MMS_LOG_USR_IND) { (*menu_set_fun)(); /* restore menu */ } }/************************************************************************//* indication function not supported *//************************************************************************/ST_VOID u_ind_not_supp (MMSREQ_IND *req_info) { if (mms_debug_sel & MMS_LOG_USR_IND) { indic_info_print (req_info,"Indication not supported "); indic_info_wait (); /* allow user to see indic info */ } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -