1 /* *********************************************************** 2 * * 3 * Copyright, (C) Honeywell Bull Inc., 1987 * 4 * * 5 * Copyright, (C) Honeywell Information Systems Inc., 1986 * 6 * * 7 *********************************************************** */ 8 9 /* HISTORY COMMENTS: 10 1) change(86-07-06,Westcott), approve(87-07-13,MCR7580), 11 audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072): 12 Created. 13 END HISTORY COMMENTS */ 14 15 /* : PROCEDURE FUNCTION (disrqst) 16 17 Sends a "DISCONNECT_REQUEST" minor capability message to the addressed 18 major capability. This message is used by the major capability to destroy 19 the instance indicated by the major capability number. 20 */ 21 22 #include <stdio.h> 23 #include <ws.h> 24 #include <wsmincap.h> 25 #include <ws_mcb.h> 26 #include <ws_error.h> 27 28 disrqst(p_cap_num,p_mcb_ptr) 29 30 int p_cap_num; /* Capability to send request to */ 31 mcb *p_mcb_ptr; /* Caller's MCB */ 32 { 33 if (p_mcb_ptr == NULL) 34 return (WSINVMCB); 35 36 /* : Pass the message through MOWSE */ 37 38 return (execap (p_cap_num,REQUEST_DISCONNECT,NULL,0,p_mcb_ptr)); 39 } 40 ^Z