📄 mmsapp.c
字号:
menu_set_fun = set_ctx2; /* used to reset the menu */ }/************************************************************************//* do_vmd_ops *//* This functions executes the vmd support menu. *//************************************************************************/ST_VOID do_vmd_ops (ST_VOID) { set_vmd (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_main (); }/************************************************************************//* set_vmd *//* function to set up the vmd support screen and function key table *//************************************************************************/ST_VOID set_vmd (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n"); printf ("\t %c1 - STATUS\n",c); printf ("\t %c2 - UNSOLICITED STATUS\n",c); printf ("\t %c3 - IDENTIFY\n",c); printf ("\t %c4 - RENAME\n",c); printf ("\t %c5 - GET NAME LIST\n",c); printf ("\t %c6 - GET CAPABILITY LIST\n",c); printf ("\t %c7 - VMD MANAGEMENT MENU\n",c);#ifdef AXS4MMSOBJ printf ("\t %c8 - BUILD MMS OBJECT SET\n",c);#endif printf ("\t %s - RETURN TO MAIN MENU\n",str); flush_keys (); fun_null (); funct_1 = do_stat; funct_2 = do_ustat; funct_3 = do_ident; funct_4 = do_rename; funct_5 = do_namelist; funct_6 = do_getcl; funct_7 = do_vmd_mgnt_ops;#ifdef AXS4MMSOBJ funct_8 = do_get_mms_objs;#endif menu_set_fun = set_vmd; /* used to reset the menu */ }/************************************************************************//* do_vmd_mgnt_ops *//* This function executes the vmd management operations *//************************************************************************/ST_VOID do_vmd_mgnt_ops (ST_VOID) { set_vmd_mgnt_ops (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_vmd (); }/************************************************************************//* set_vmd_mgnt_ops *//* function to set up the vmd management screen and function key table *//************************************************************************/ST_VOID set_vmd_mgnt_ops (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n"); printf ("\t %c1 - ADD VMD\n",c); printf ("\t %c2 - DISMANTLE VMD\n",c); printf ("\t %c3 - DELETE VMD\n",c); printf ("\t %c4 - LIST ALL VMDs\n",c); printf ("\t %c5 - SELECT CURRENT VMD\n",c); printf ("\t %s - RETURN TO MAIN MENU\n",str); flush_keys (); fun_null (); funct_1 = do_add_vmd; funct_2 = do_dismantle_vmd; funct_3 = do_delete_vmd; funct_4 = do_list_vmd; funct_5 = do_select_vmd; menu_set_fun = set_vmd_mgnt_ops; /* used to reset the menu */ }/************************************************************************//* do_dom_ops *//* This function executes the domain management operations *//************************************************************************/ST_VOID do_dom_ops (ST_VOID) { set_dom (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_main (); }/************************************************************************//* set_dom *//* function to set up the domain management screen and function key *//* table *//************************************************************************/ST_VOID set_dom (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n"); printf ("\t %c1 - DOMAIN UPLOAD/DOWNLOAD MENU\n",c); printf ("\t %c2 - LOAD DOMAIN CONTENT\n",c); printf ("\t %c3 - STORE DOMAIN CONTENT\n",c); printf ("\t %c4 - DELETE DOMAIN\n",c); printf ("\t %c5 - GET DOMAIN ATTRIBUTES\n",c); printf ("\t %c6 - ADD NAMED DOMAIN\n",c); printf ("\t %c7 - DELETE NAMED DOMAIN\n",c); printf ("\t %c8 - LIST ALL NAMED DOMAINS\n",c); printf ("\t %c9 - CHANGE A DOMAINS STATE\n",c); printf ("\t %s - RETURN TO MAIN MENU\n",str); flush_keys (); fun_null (); funct_1 = do_udload_dom_ops; funct_2 = do_loaddom; funct_3 = do_storedom; funct_4 = do_deldom; funct_5 = do_getdom; funct_6 = do_add_named_dom; funct_7 = do_del_named_dom; funct_8 = do_list_named_dom;#ifndef PSOS_SYSTEM funct_9 = do_change_named_dom_state;#endif menu_set_fun = set_dom; /* used to reset the menu */ }/************************************************************************//* do_udload_dom_ops *//* This function executes the domain management operations *//************************************************************************/ST_VOID do_udload_dom_ops (ST_VOID) { set_dom_udload (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_dom (); }/************************************************************************//* set_dom_upload *//* function to set up the domain management screen and function key *//* table for uploading and downloading of domains. *//************************************************************************/ST_VOID set_dom_udload (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS UPLOAD/DOWNLOAD ACTIVITY\n\n"); printf ("\t %c1 - INITIATE DOWNLOAD SEQUENCE\n",c); printf ("\t %c2 - DOWNLOAD SEGMENT\n",c); printf ("\t %c3 - TERMINATE DOWNLOAD SEQUENCE\n",c); printf ("\t %c4 - INITIATE UPLOAD SEQUENCE\n",c); printf ("\t %c5 - UPLOAD SEGMENT\n",c); printf ("\t %c6 - TERMINATE UPLOAD SEQUENCE\n",c); printf ("\t %c7 - REQUEST DOMAIN DOWNLOAD\n",c); printf ("\t %c8 - REQUEST DOMAIN UPLOAD\n",c); printf ("\t %c9 - VM UPLOAD/DOWNLOAD MENU\n",c); printf ("\t %s - RETURN TO MMS COMMUNICATION ACTIVITY MENU\n",str); flush_keys (); fun_null (); funct_1 = do_initdown; funct_2 = do_download; funct_3 = do_termdown; funct_4 = do_initupl; funct_5 = do_upload; funct_6 = do_termupl; funct_7 = do_rddwn; funct_8 = do_rdupl; funct_9 = do_vmud_load; menu_set_fun = set_dom_udload; /* used to reset the menu */ }/************************************************************************//* do_vmud_load *//* do Virtual Machine uploads and downloads *//************************************************************************/ST_VOID do_vmud_load (ST_VOID) { set_vmud_load (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_dom_udload (); }/************************************************************************//* set_vmud_load *//* function to set up the domain management screen and function key *//* table for uploading and downloading of domains. *//************************************************************************/ST_VOID set_vmud_load (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS VM UPLOAD/DOWNLOAD ACTIVITY\n\n"); printf ("\t %c1 - VM UPLOAD\n",c); printf ("\t %c2 - VM DOWNLOAD\n",c); printf ("\t %s - RETURN TO PREVIOUS MENU\n",str); flush_keys (); fun_null (); funct_1 = do_vmupload; funct_2 = do_vmdownload; menu_set_fun = set_vmud_load; /* used to reset the menu */ }/************************************************************************//* do_prg_ops *//* execute program invocation management menu *//************************************************************************/ST_VOID do_prg_ops (ST_VOID) { set_prg (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_main (); }/************************************************************************//* set_prg *//* function to set up the program invocation screen and function key *//* table. *//************************************************************************/ST_VOID set_prg (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n"); printf ("\t %c1 - CREATE PROGRAM INVOCATION\n",c); printf ("\t %c2 - DELETE PROGRAM INVOCATION\n",c); printf ("\t %c3 - START\n",c); printf ("\t %c4 - STOP\n",c); printf ("\t %c5 - RESUME\n",c); printf ("\t %c6 - RESET\n",c); printf ("\t %c7 - KILL\n",c); printf ("\t %c8 - GET PROGRAM INVOCATION ATTRIBUTES\n",c); printf ("\t %c9 - LOCAL PI MENU\n",c); printf ("\t %s - RETURN TO MAIN MENU\n",str); flush_keys (); fun_null (); funct_1 = do_crepi; funct_2 = do_delpi; funct_3 = do_start; funct_4 = do_stop; funct_5 = do_resume; funct_6 = do_reset; funct_7 = do_kill; funct_8 = do_getpi; funct_9 = do_local_pi_menu; menu_set_fun = set_prg; /* used to reset the menu */ }/************************************************************************//* do_local_pi_menu *//* This functions executes the local Program Invocations *//************************************************************************/ST_VOID do_local_pi_menu (ST_VOID) { set_local_pi_menu (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_prg (); }/************************************************************************//* set_type_menu *//* function to set up the local named type definition menu *//************************************************************************/ST_VOID set_local_pi_menu (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS LOCAL PI ACTIVITY\n\n"); printf ("\t %c1 - ADD LOCAL PROGRAM INVOCATION\n",c); printf ("\t %c2 - DELETE LOCAL PROGRAM INVOCATION\n",c); printf ("\t %c3 - LIST LOCAL PROGRAM INVOCATIONS\n",c); printf ("\t %c4 - CHANGE THE STATE OF A LOCAL PROGRAM INVOCATION\n",c); printf ("\t %s - RETURN TO PI MENU\n",str); flush_keys (); fun_null (); funct_1 = do_add_pi; funct_2 = do_del_pi; funct_3 = do_list_local_pis;#ifndef PSOS_SYSTEM funct_4 = do_change_pi_state;#endif menu_set_fun = set_local_pi_menu; /* used to reset the menu */ }/************************************************************************//* do_var_ops *//* This functions executes the variable access operations. *//************************************************************************/ST_VOID do_var_ops (ST_VOID) { set_var (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_main (); }/************************************************************************//* set_var *//* function to set up the variable access screen and function key table *//************************************************************************/ST_VOID set_var (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n"); printf ("\t %c1 - READ\n",c); printf ("\t %c2 - WRITE\n",c); printf ("\t %c3 - INFORMATION REPORT\n",c); printf ("\t %c4 - TYPE/NAME DEFINITION MENU\n",c); printf ("\t %c5 - SCATTERED ACCESS/VARIABLE LIST DEFINITION MENU\n",c); printf ("\t %c6 - LOCAL NAMED TYPE MENU\n",c); printf ("\t %c7 - LOCAL NAMED VARIABLE MENU\n",c); printf ("\t %c8 - LOCAL NAMED VARIABLE LIST MENU\n",c); printf ("\t %c9 - SPECIAL DATA TEST MENU\n",c); printf ("\t %s - RETURN TO MAIN MENU\n",str); flush_keys (); fun_null (); funct_1 = do_read; funct_2 = do_write; funct_3 = do_info; funct_4 = do_var_defs; funct_5 = do_sa_vl_defs; funct_6 = do_type_menu; funct_7 = do_var_menu; funct_8 = do_var_list_menu; funct_9 = do_data_tests; menu_set_fun = set_var; /* used to reset the menu */ }/************************************************************************//* do_var_defs *//* This functions executes the variable/type definition menu *//************************************************************************/ST_VOID do_var_defs (ST_VOID) { set_var_defs (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_var (); }/************************************************************************//* set_var_defs *//* function to set up the var def screen and function key table *//************************************************************************/ST_VOID set_var_defs (ST_VOID) { CLEARSCR; print_demo (); printf ("\n\n"); printf ("\t SELECT DESIRED MMS COMMUNICATION ACTIVITY\n\n"); printf ("\t %c1 - GET VARIABLE ACCESS ATTRIBUTES\n",c); printf ("\t %c2 - DEFINE NAMED VARIABLE\n",c); printf ("\t %c3 - DELETE VARIABLE ACCESS\n",c); printf ("\t %c4 - GET NAMED TYPE ATTRIBUTES\n",c); printf ("\t %c5 - DEFINE NAMED TYPE\n",c); printf ("\t %c6 - DELETE NAMED TYPE\n",c); printf ("\t %s - RETURN TO VARIABLE ACCESS MENU\n",str); flush_keys (); fun_null (); funct_1 = do_getvar; funct_2 = do_defvar; funct_3 = do_delvar; funct_4 = do_gettype; funct_5 = do_deftype; funct_6 = do_deltype; menu_set_fun = set_var_defs; /* used to reset the menu */ }/************************************************************************//* do_sa_vl_defs *//* This functions executes the scattered access/variable list *//* definition menu. *//************************************************************************/ST_VOID do_sa_vl_defs (ST_VOID) { set_sa_vl_defs (); menu_service (); /* Service keyboard/MMS until exit from menu */ set_var (); }/************************************************************************//* set_sa_vl_defs */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -