home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / Mgr / VDImgr.zoo / rmgr / rmgr.h < prev    next >
C/C++ Source or Header  |  1993-03-16  |  1KB  |  60 lines

  1. /* Copyright (c) 1987,1988 Oliver Laumann, Technical University of Berlin.
  2.  * Not derived from licensed software.
  3.  *
  4.  * Permission is granted to freely use, copy, modify, and redistribute
  5.  * this software, provided that no attempt is made to gain profit from it,
  6.  * the author is not construed to be liable for any results of using the
  7.  * software, alterations are clearly marked as such, and this notice is
  8.  * not modified.
  9.  */
  10.  
  11. #if 0
  12. #include <mgr/term.h>
  13. #else
  14. #include "term.h"
  15. #endif
  16.  
  17. #define MAXSTR       128
  18. #define    MAXARGS      64
  19.  
  20. #define IOSIZE       256
  21. #define    SCRBUFSIZE    2048    /* About 1 screenful of characters */
  22.  
  23. struct win {
  24.     int wpid;
  25.     int ptyfd;
  26.     int rows;
  27.     int cols;
  28.     char cmd[MAXSTR];
  29.     char tty[MAXSTR];
  30.     int slot;
  31.     int win_ok;
  32.     int outful;
  33.     char outbuf[SCRBUFSIZE];
  34.     char *outptr;
  35. };
  36.  
  37. #define MY_MAXLINE 1024
  38.  
  39. #define MSG_CREATE    0
  40. #define MSG_ERROR     1
  41. #define MSG_ATTACH    2
  42. #define MSG_CONT      3
  43.  
  44. struct msg {
  45.     int type;
  46.     union {
  47.     struct {
  48.         int nargs;
  49.         char line[MY_MAXLINE];
  50.         char dir[1024];
  51.         char name[MAXSTR];
  52.     } create;
  53.     struct {
  54.         int apid;
  55.         char tty[1024];
  56.     } attach;
  57.     char message[MY_MAXLINE];
  58.     } m;
  59. };
  60.