h34030
s 00000/00000/00056
d D 1.2 83/03/31 12:33:11 mmm 2 1
c 
e
s 00056/00000/00000
d D 1.1 83/03/15 21:39:05 tes 1 0
c date and time created 83/03/15 21:39:05 by tes
e
u
4
U
t
T
I 1
subroutine giwks (wkid,errind,state,defmod,regmod,nframe)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Inquire workstation state                              #
#                                                                      #
#     Input Parameters:                                                #
#            wkid   - workstation identifier                           #
#     Output Parameters:                                               #
#            errind - error indicator                                  #
#            state  - workstation state (0=inactive, 1=active)         #
#            defmod - deferral mode (0=asap,1=bnil,2=bnig,3=asti)      #
#            regmod - implicit regeneration mode (0=supp, 1=allowed    #
#            nframe - new frame action necessary ar update (0=no,1=yes)#
#                                                                      #
#     Errors:                                                          #
#            7  GKS not in proper state: GKS must be in one of the     #
#               states WSOP, WSAC, or SGOP                             #
#           20  Specified workstation identifier is invalid            #
#           25  specified workstation is not open                      #
#                                                                      #
#     Routines Called:                                                 #
#            errchk - perform appropriate error checking               #
#                                                                      #
########################################################################
integer  wkid, errind, state, defmod, regmod, nframe

ifdef(`ERROR_ON',`
   integer errchk, ierdum(1)
   ')
 
include(`gkscom')

   # In all inquiry routines, initialize errind to 0 (zero).
   errind = 0
   ifdef(`ERROR_ON',`
      rounum = GIWKS
      errind = errchk(wkid, ierdum)
      if (errind != 0) return
      ')

   # Get values from workstation list common
   state = wrkst
   defmod = 0
   regmod = 0
   nframe = 0
   
   return
end
E 1
