home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / defs / control.def < prev    next >
Text File  |  1990-06-09  |  4KB  |  95 lines

  1. #ifndef lint
  2. static char SccsCtrldefId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    Control.def
  6.  * Purpose:    Declare and initialize event loop and control parameters
  7.  * Modified:    {0} Michael VanHilst    initial version          19 May 1989
  8.  *        {n} <who> -- <does what> -- <when>
  9.  */
  10. extern void open_imtool_connection();
  11.  
  12. struct controlRec control = {
  13.   SOP,        /* int mode;        active event response mode */
  14.   NULL,        /* int *response;    widget returned data pointer */
  15.   0,        /* int eventmask;    current event mask */
  16.   0,        /* int priority;    special event tracking mask */
  17.   0,        /* int completed;    event response completed flag */
  18.   1,        /* int verbose;        print-messages-about-statuses */
  19.   1,        /* int tracking;    magnifier and color graph tracking */
  20.   1,        /* int magni_track;    track mouse with magni box */
  21.   1,        /* int coord_track;    track mouse with coord string */
  22.   0,        /* int print_buttons;    include buttons in hardcopy output */
  23.   IOP_PostScript, /* int printer;    PostScript, Imagen Impress, etc. */
  24.   0,        /* int look_and_feel;    SAO, Motif, OpenLook */
  25.   0,        /* int remote_connected; select for more than just X events */
  26.   0,        /* int select_size;    size of mask to check for event */
  27.   { 0 },    /* int select_mask[4];    combined select mask for connection */
  28.   { 0 },    /* struct connectRec Xserver; */
  29.   {        /*  struct connectRec IRAF_in; */
  30. #ifdef VMS
  31.    IOP_mailbox,    /* int type;        named pipe, socket, or VMS mailbox */
  32. #else
  33.    IOP_pipe,    /* int type;        named pipe, socket, or VMS mailbox */
  34. #endif
  35.    IOP_Imtool,    /* int protocol;    packet type (IRAF, AIPS, HRC, CMD) */
  36.    0,        /* int fd;        file descriptor */
  37. #ifdef IMTOOL
  38.    1,        /* int open;        0 if closed, else open */
  39. #else
  40.    0,        /* int open;        0 if closed, else open */
  41. #endif
  42.    IOP_Read,    /* int direction;    read, write, read/write, listen */
  43.    "/dev/imt1o", /* char *name;        pipe name or net socket address */
  44.    0,        /* int address;        network address or parent fd */
  45. #ifdef IMTOOL
  46.    open_imtool_connection,    /* void func();    call to init */
  47. #else
  48.    NULL,    /* void func();        function to call when signalled */
  49. #endif
  50.    { 0 },    /* int mask[4];        mask bit for file descriptor */
  51.    NULL, /* struct connectRec *next;    linklist queue for event handling */
  52.    NULL     /* struct connectRec *affiliate; binding for listener/connection */
  53.   },
  54.   {        /* struct connectRec IRAF_out; */
  55. #ifdef VMS
  56.    IOP_mailbox,    /* int type;        named pipe, socket, or VMS mailbox */
  57. #else
  58.    IOP_pipe,    /* int type;        named pipe, socket, or VMS mailbox */
  59. #endif
  60.    IOP_Imtool,    /* int protocol;    packet type (IRAF, AIPS, HRC, CMD) */
  61.    0,        /* int fd;        file descriptor */
  62.    0,        /* int open;        0 if closed, else open */
  63.    IOP_Write,    /* int direction;    read, write, read/write, listen */
  64.    "/dev/imt1i", /* char *name;        pipe name or net socket address */
  65.    0,        /* int address;        network address or parent fd */
  66.    NULL,    /* void (*func)();    function to call when signalled */
  67.    { 0 },    /* int mask[4];        mask bit for file descriptor */
  68.    NULL, /* struct connectRec *next;    linklist queue for event handling */
  69.    NULL     /* struct connectRec *affiliate; binding for listener/connection */
  70.   },
  71.   {        /* struct connectRec AIPS_in; */
  72. #ifdef VMS
  73.    IOP_mailbox,    /* int type;        named pipe, socket, or VMS mailbox */
  74. #else
  75.    IOP_socket,    /* int type;        named pipe, socket, or VMS mailbox */
  76. #endif
  77.    IOP_AIPS,    /* int protocol;    packet type (IRAF, AIPS, HRC, CMD) */
  78.    0,        /* int fd;        file descriptor */
  79.    0,        /* int open;        0 if closed, else open */
  80.    IOP_ReadWrite, /* int direction;    read, write, read/write, listen */
  81.    NULL,    /* char *name;        pipe name or net socket address */
  82.    0,        /* int address;        network address or parent fd */
  83.    NULL,    /* void (*func)();    function to call when signalled */
  84.    { 0 },    /* int mask[4];        mask bit for file descriptor */
  85.    NULL, /* struct connectRec *next;    linklist queue for event handling */
  86.    NULL     /* struct connectRec *affiliate; binding for listener/connection */
  87.   },
  88.   { 0 },    /* struct connectRec AIPS_out; */
  89.   { 0 },    /* struct connectRec aux_in; */
  90.   { 0 }        /* struct connectRec aux_out; */
  91.         /* XEvent event;    info about most recent X event */
  92. };
  93.  
  94. /* Note: the XEvent declaration is odd and best left to the compiler default */
  95.