UAF_DW_TEMPLATE 22-NOV-1993 11:28:49 VAX C V3.2-044 Page 1 X-1 21-JUN-1993 13:16:33 UAF_DW_TEMPLATE.C;10 (1) 1 #module UAF_DW_TEMPLATE "X-1" 2 3 /* 4 **++ 5 ** FACILITY: Authorization record maintenance utility 6 ** 7 ** MODULE DESCRIPTION: 8 ** 9 ** This module contains the routines for the managing 10 ** the modification template use by the DECwindows 11 ** AUTHORIZE utility. 12 ** 13 ** AUTHORS: L. Mark Pilant CREATION DATE: 20-Apr-1993 14 ** 15 ** MODIFICATION HISTORY: 16 ** 17 ** X-1 LMP L. Mark Pilant, 20-Apr-1993 18 ** Original version. 19 ** 20 **-- 21 */ 22 23 /* 24 ** 25 ** INCLUDE FILES 26 ** 27 */ 28 29 #include string 75 76 #include 32135 32136 #include "uaf_header" 33556 33557 /* 33558 ** 33559 ** FORWARD ROUTINES. 33560 ** 33561 */ 33562 33563 #pragma noinline (AUTHORIZE$MODIFY_TEMPLATE) 33564 UAF_DW_TEMPLATE 22-NOV-1993 11:28:49 VAX C V3.2-044 Page 2 X-1 21-JUN-1993 13:16:33 UAF_DW_TEMPLATE.C;10 (2) 33565 extern void AUTHORIZE$MODIFY_TEMPLATE (widget_id, tag, reason) 33566 33567 Widget widget_id; 33568 int *tag; 33569 XmAnyCallbackStruct *reason; 33570 { 33571 1 /* 33572 1 **++ 33573 1 ** FUNCTIONAL DESCRIPTION: 33574 1 ** 33575 1 ** This routine is called to set up the template window for modifications 33576 1 ** and later use by the DECwindows authorization utility. 33577 1 ** 33578 1 ** FORMAL PARAMETERS: 33579 1 ** 33580 1 ** None. 33581 1 ** 33582 1 ** RETURN VALUE: 33583 1 ** 33584 1 ** None. 33585 1 ** 33586 1 ** SIDE EFFECTS: 33587 1 ** 33588 1 ** None. 33589 1 ** 33590 1 **-- 33591 1 */ 33592 1 UAF_DW_TEMPLATE 22-NOV-1993 11:28:49 VAX C V3.2-044 Page 3 X-1 21-JUN-1993 13:16:33 UAF_DW_TEMPLATE.C;10 (3) 33593 1 /* External routines. */ 33594 1 33595 1 extern void AUTHORIZE$SET_UP_ENTRY (); 33596 1 33597 1 /* Global references. */ 33598 1 33599 1 globalref struct ITMDEF (*uaf_r_template_info)[]; /* Modification template information */ 33600 1 globalref Widget uaf_r_entry_window_widget; /* Entry window widget info */ 33601 1 33602 1 /* Local storage. */ 33603 1 33604 1 unsigned int status; /* Routine exit status */ 33605 1 33606 1 /* Debug information. */ 33607 1 33608 1 #ifdef DEBUGGING 33609 X printf ("modify template\n"); 33610 1 #endif /* DEBUGGING */ 33611 1 33612 1 /* Because the template information comes from the standard authorization 33613 1 ** entry window, check to see if the authorization entry window is currently 33614 1 ** managed. If it is, query to see if this operation should continue. */ 33615 1 33616 1 if (XtIsManaged (uaf_r_entry_window_widget)) 33617 1 { 33618 2 XtUnmanageChild (uaf_r_entry_window_widget); 33619 2 } 33620 1 33621 1 /* Set up the authorization entry window using the template information. */ 33622 1 33623 1 AUTHORIZE$SET_UP_ENTRY (uaf_r_template_info); 33624 1 33625 1 /* Make the entry window visible. */ 33626 1 33627 1 XtManageChild (uaf_r_entry_window_widget); 33628 1 } Command Line ------------ CC/LIST=UAF_DW_TEMPLATE/OBJECT=UAF_DW_TEMPLATE UAF_DW_TEMPLATE