📄 u_cprg.c
字号:
/************************************************************************//* SISCO SOFTWARE MODULE HEADER *****************************************//************************************************************************//* (c) Copyright Systems Integration Specialists Company, Inc., *//* 1986 - 1997, All Rights Reserved. *//* *//* MODULE NAME : u_cprg.c *//* PRODUCT(S) : MMSEASE *//* *//* MODULE DESCRIPTION : *//* This module contains user confirm functions. These functions *//* are invoked from 'mms_req_serve' when the response to an *//* outstanding request is received. These functions should check *//* the resp_err member of the request control structure before *//* assuming returned data. *//* *//* NOTES ON REQUEST INFORMATION : *//* In the user application, request information structures may be *//* committed when the request is made (e.g. for error recovery). *//* If so, these information buffers could be freed in the confirm *//* functions. In the sample application, all request information *//* structures are automatic or handled when the request is issued. *//* *//* 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_pprg.h"#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/************************************************************************//************************************************************************//* PROGRAM INVOCATION MANAGEMENT *//************************************************************************//************************************************************************//* MP CREATE PROGRAM INVOCATION *//************************************************************************/#if MMS_CRE_PI_EN & REQ_ENST_VOID u_mp_crepi_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Create Program Invocation "); 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 PROGRAM INVOCATION *//************************************************************************/#if MMS_DEL_PI_EN & REQ_ENST_VOID u_mp_delpi_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Delete Program Invocation "); 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 START *//************************************************************************/#if MMS_START_EN & REQ_ENST_VOID u_mp_start_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Start "); 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 STOP *//************************************************************************/#if MMS_STOP_EN & REQ_ENST_VOID u_mp_stop_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Stop "); 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 RESUME *//************************************************************************/#if MMS_RESUME_EN & REQ_ENST_VOID u_mp_resume_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Resume "); 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 RESET *//************************************************************************/#if MMS_RESET_EN & REQ_ENST_VOID u_mp_reset_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Reset "); 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 KILL *//************************************************************************/#if MMS_KILL_EN & REQ_ENST_VOID u_mp_kill_conf (MMSREQ_PEND *req_ptr) { if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Kill "); 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 GET PROGRAM INVOCATION ATTRIBUTE *//************************************************************************/#if MMS_GET_PI_EN & REQ_ENST_VOID u_mp_getpi_conf (MMSREQ_PEND *req_ptr) {GETPI_RESP_INFO *ptr;ST_CHAR **data;ST_INT i;EXTERN_INFO ext; if (mms_debug_sel & MMS_LOG_USR_CONF) { conf_info_print (req_ptr,"Get Program Invocation Attribute "); if (req_ptr->resp_err) list_err_info (req_ptr); else { ptr = (GETPI_RESP_INFO *) req_ptr->resp_info_ptr; data = (ST_CHAR **) (ptr + 1); printf ("\n State : "); print_pi_state (ptr->state); printf ("\n MMS Deletable : "); if (ptr->mms_deletable) printf ("YES"); else printf ("NO"); printf ("\n Reusable : "); if (ptr->reusable) printf ("YES"); else printf ("NO"); printf ("\n Monitor : "); if (ptr->monitor) printf ("Permanent"); else printf ("Current"); printf ("\n Start Argument : "); if (ptr->start_arg_type == ARG_TYPE_ENCODED) { printf (" ENCODED START ARG"); if (ask ("\n Decode & List EXTERNAL (N) ? ",0)) { if (!ms_decode_extern (ptr->start_arg, ptr->start_arg_len,&ext)) list_external (stdout,&ext); else { printf ("\n EXTERNAL decode error\n"); list_bytes (ptr->start_arg, ptr->start_arg_len); } } else list_bytes (ptr->start_arg, ptr->start_arg_len); } else printf ("%s", ptr->start_arg); printf ("\n Number of Domain Names : %d", ptr->num_of_dnames); for (i = 0; i < ptr->num_of_dnames; i++, data++) printf ("\n %d) %s ", i+1, *data); } conf_info_wait (); } /* take care of continuous send var */ resp_rcvd = 1; /* set response received flag */ rep_count++; /* increment number of reps counter */ }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -