⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userdefs.h

📁 ICCP Toolkit 是在 Tru64下开发Tase.2通信协议的开发包
💻 H
📖 第 1 页 / 共 2 页
字号:
#ifndef USERDEFS_H#define USERDEFS_H/************************************************************************//* SISCO SOFTWARE MODULE HEADER *****************************************//************************************************************************//*   (c) Copyright Systems Integration Specialists Company, Inc.,	*//*      	  1986 - 2001, All Rights Reserved.		        *//*									*//* MODULE NAME : userdefs.h						*//* PRODUCT(S)  : MMSEASE						*//*									*//* MODULE DESCRIPTION : 						*//*	This module contains user application definitions and is not	*//*	directly a part of MMSEASE.  It is only used for the sample	*//*	application.							*//*									*//* MODIFICATION LOG :							*//*  Date     Who   Rev			Comments			*//* --------  ---  ------   -------------------------------------------	*//* 10/05/01  EJV     10    Corrected comment				*//* 12/06/00  RKR     09    Added support for unnamed vars		*//* 01/11/00  RKR     08    Added prototypes for var block testing	*//* 08/04/98  RKR     07    Add calc_mill_since_12 prototype		*//* 07/21/98  EJV     06    Added do_auto_disc.				*//* 07/07/98  NAV     05    Add calc_days_since_1184 prototype		*//* 08/15/97  MDE     04    BTOD handling changes			*//* 07/29/97  DSF     03    Moved APP_REF to SUIC			*//* 06/23/97  RKR     02    Changed arbitrary data handling		*//* 06/03/97  RKR     01    Changed USE_VA_BSEARCH to M_USE_BSEARCH	*//* 04/15/97  DSF   7.00    MMSEASE 7.0 release. See MODL70.DOC for	*//*			   history.					*//************************************************************************//************************************************************************/#ifdef __cplusplusextern "C" {#endif/************************************************************************//* Uncomment this define to use the binary search for variables,    	*//* variable lists, and domains.                     			*//*#define M_USE_BSEARCH*//************************************************************************//* S_LOG is used with the DEBUG version of the MMS-EASE demo.  A way to *//* compile in references to S_LOG and configure it using keywords is 	*//* automatically done based on whether or not this header file is 	*//* compiled with DEBUG_SISCO defined.					*/#ifdef DEBUG_SISCO/************************************************************************//* The REQUIRE_S_LOG define is used to compile out all pieces of code	*//* in the demo that make reference to the S_LOG library.		*/#define REQUIRE_S_LOG /************************************************************************//* The CFG_FILE_LOGGING define is used to compile out all pieces of code*//* in the demo that use the mms_log.cfg file. 				*/#define CFG_FILE_LOGGING#endif/************************************************************************//* Defines for configuration file names.				*/#ifdef VXWORKS#define MMSDEMO_CFG_FILE	"/cfg/mmsdemo.cfg"#define MMSLOG_CFG_FILE		"/cfg/mmslog.cfg"#define MMS_LOG_CFG_FILE	"/cfg/mms_log.cfg"#define MMSVAR_CFG_FILE		"/cfg/mmsvar.cfg"#else	/* !VXWORKS	*/#define MMSDEMO_CFG_FILE	"mmsdemo.cfg"#define MMSLOG_CFG_FILE		"mmslog.cfg"#define MMS_LOG_CFG_FILE  	"mms_log.cfg"#define MMSVAR_CFG_FILE		"mmsvar.cfg"#endif	/* !VXWORKS	*/#ifdef VXWORKS/* Used to set "tpy_dib_ptr" which must be set before calling	*//* "ms_load_tpy_dib" (see example in mmsapp.c).			*//* Other platforms use default "tpy_dib_ptr" set in library.	*/#define TPY_DIB_FILE		"/cfg/tpy.dib"#endif/************************************************************************//************************************************************************/#define GET_CHANNEL_CONFIG	0#define GET_TITLE_CONFIG	1ST_VOID load_local_titles (ST_INT mode);/************************************************************************//* A table of ST_INT flags that indicate whether a channel is a 'listen'	*//* channel or not is allocated on powerup				*/extern ST_INT *listen_sel;	/* listen channel selects		*//************************************************************************//* This function pointer is used in the debug version when prints are	*//* enabled, allows reseting the user screen.				*/extern ST_VOID (*menu_set_fun)(ST_VOID); /* used to reset the menu		*//************************************************************************//* The logical_mem buffer is the buffer used for logical memory !!!	*//* The variables below define the user's 'logical' memory, for read,    *//* write, and information report service.				*/#define LOG_MEM_BUF_SIZE 1000extern ST_CHAR *logical_mem;	/* logical data memory space		*/extern ST_INT log_mem_len;/************************************************************************//* The variables below are used to implement a continuous data send	*//* system, which may be used to measure the response time for a request */extern ST_BOOLEAN resp_rcvd;	/* set when the response is received	*/extern time_t	cont_start_time;/* time first sent			*/extern ST_INT	rep_count;	/* number of repetitions done		*/extern ST_INT	num_reps;	/* number to do 			*/extern ST_BOOLEAN	cont_print_flag;/* set != 0 to primt running count	*/extern ST_INT    num_outstanding;/* number of outstanding requests	*/extern ST_INT    pipelength;     /* number of messages in the pipeline	*//************************************************************************//* Buffers for information transfers for Variable and File access.	*//* These are scratchpad areas, used for misc. purposes, allocated at	*//* powerup by user.							*/extern ST_CHAR *dest_buffer;	/* [10000] destination buffer		*/extern ST_CHAR *source_buf;	/* [1020] write data source buffer	*/extern ST_CHAR *tbuf;		/* response info buffer			*/extern ST_CHAR *nxt_buf;#ifdef MMSWIN#define print_req_error no_req_error#endif/************************************************************************//* Some User Functions							*//************************************************************************/ST_RET   check_for_surprise    (MMSREQ_IND *req_info);ST_VOID  print_demo 	(ST_VOID);ST_VOID  set_main 		(ST_VOID);ST_VOID  set_suic_param 	(ST_VOID);ST_VOID  set_suic_param_llc (ST_VOID);ST_VOID  do_debugset 	(ST_VOID);ST_VOID  wait_any_event    (ST_LONG max_ms_delay);#if defined(__OS2__)ST_VOID init_os2_event_handling (ST_VOID);ST_VOID wait_any_event_os2 (ST_LONG max_ms_delay);#endifST_VOID  menu_service      (ST_VOID);ST_VOID  mms_comm_service 	(ST_VOID);ST_VOID  set_vmd 		(ST_VOID);ST_VOID  set_ctx 		(ST_VOID);ST_VOID  set_ctx2 		(ST_VOID);ST_VOID  set_vmd_mgnt_ops 	(ST_VOID);ST_VOID  set_dom 		(ST_VOID);ST_VOID  set_dom_udload 	(ST_VOID);ST_VOID  set_prg 		(ST_VOID);ST_VOID  set_local_pi_menu (ST_VOID);ST_VOID  set_var 		(ST_VOID);ST_VOID  set_var_menu 	(ST_VOID);ST_VOID  set_var_list_menu	(ST_VOID);ST_VOID  set_type_menu 	(ST_VOID);ST_VOID  set_sa_vl_defs 	(ST_VOID);ST_VOID  set_sem 		(ST_VOID);ST_VOID  set_ocs 		(ST_VOID);ST_VOID  set_evn 		(ST_VOID);ST_VOID  set_ec 		(ST_VOID);ST_VOID  set_ee 		(ST_VOID);ST_VOID  set_jou 		(ST_VOID);ST_VOID  set_file 		(ST_VOID);ST_VOID  set_file_mgt 	(ST_VOID);ST_VOID  set_misc 		(ST_VOID);ST_VOID  set_suic 		(ST_VOID);ST_VOID  set_null_menu 	(ST_VOID);ST_VOID  acse_suic_debug_set (ST_VOID);ST_VOID  set_more 		(ST_VOID);ST_VOID  do_ctx_ops 	(ST_VOID);ST_VOID  do_vmd_ops 	(ST_VOID);ST_VOID  do_prg_ops 	(ST_VOID);ST_VOID  do_dom_ops 	(ST_VOID);ST_VOID  do_var_ops 	(ST_VOID);ST_VOID  do_more_ops 	(ST_VOID);ST_VOID  do_private 	(ST_VOID);ST_VOID  do_sem_ops 	(ST_VOID);ST_VOID  do_ocs_ops 	(ST_VOID);ST_VOID  do_evn_ops 	(ST_VOID);ST_VOID  do_jou_ops 	(ST_VOID);ST_VOID  do_fil_ops 	(ST_VOID);ST_VOID  do_misc 		(ST_VOID);ST_VOID  do_init 		(ST_VOID);ST_VOID  do_concl 		(ST_VOID);ST_VOID  do_abort 		(ST_VOID);ST_VOID  do_mchan 		(ST_VOID);ST_VOID  do_init_rel 	(ST_VOID);ST_VOID  do_init_abort 	(ST_VOID);ST_VOID  do_ctx2 		(ST_VOID);ST_VOID  do_auto_conn 	(ST_VOID);ST_VOID  do_auto_disc 	(ST_VOID);ST_VOID  do_listen 	(ST_VOID);ST_VOID  do_stop_listen 	(ST_VOID);ST_VOID  do_cancel 	(ST_VOID);ST_VOID  do_add_context 	(ST_VOID);ST_VOID  do_set_context 	(ST_VOID);ST_VOID  do_set_llp_type 	(ST_VOID);ST_VOID  do_set_ap_context	(ST_VOID);ST_VOID  do_stat 		(ST_VOID);ST_VOID  do_ustat 		(ST_VOID);ST_VOID  do_ident 		(ST_VOID);ST_VOID  do_rename 	(ST_VOID);ST_VOID  do_getcl 		(ST_VOID);ST_VOID  do_vmd_mgnt_ops 	(ST_VOID);ST_VOID  do_namelist 	(ST_VOID);#ifdef AXS4MMSOBJST_VOID  do_get_mms_objs 	(ST_VOID);#endifST_VOID  do_add_vmd 	(ST_VOID);ST_VOID  do_delete_vmd 	(ST_VOID);ST_VOID  do_dismantle_vmd 	(ST_VOID);ST_VOID  do_list_vmd 	(ST_VOID);ST_VOID  do_select_vmd 	(ST_VOID);ST_VOID  do_udload_dom_ops	(ST_VOID);ST_VOID  do_loaddom 	(ST_VOID);ST_VOID  do_storedom 	(ST_VOID);ST_VOID  do_deldom		(ST_VOID);ST_VOID  do_getdom		(ST_VOID);ST_VOID  do_add_named_dom	(ST_VOID);ST_VOID  do_del_named_dom	(ST_VOID);ST_VOID  do_list_named_dom	(ST_VOID);ST_VOID  do_change_named_dom_state	(ST_VOID);ST_VOID  do_initdown 	(ST_VOID);ST_VOID  do_download 	(ST_VOID);ST_VOID  do_termdown 	(ST_VOID);ST_VOID  do_initupl 	(ST_VOID);ST_VOID  do_upload		(ST_VOID);ST_VOID  do_termupl 	(ST_VOID);ST_VOID  do_rddwn 		(ST_VOID);ST_VOID  do_rdupl 		(ST_VOID);ST_VOID  do_vmud_load	(ST_VOID);ST_VOID  do_vmupload 	(ST_VOID);ST_VOID  do_vmdownload 	(ST_VOID);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -