home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / gopherd / command.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-09  |  2.1 KB  |  88 lines

  1. /********************************************************************
  2.  * lindner
  3.  * 3.3
  4.  * 1993/04/09 16:50:26
  5.  * /home/mudhoney/GopherSrc/CVS/gopher+/gopherd/command.h,v
  6.  * Exp
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992, 1993 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: command.h
  14.  * Definitions and prototypes for CMD object.
  15.  *********************************************************************
  16.  * Revision History:
  17.  * command.h,v
  18.  * Revision 3.3  1993/04/09  16:50:26  lindner
  19.  * nothing
  20.  *
  21.  * Revision 3.2  1993/03/24  20:18:50  lindner
  22.  * Fixed bug in macro declaration
  23.  *
  24.  * Revision 3.1  1993/03/19  19:56:56  lindner
  25.  * New CMD object
  26.  *
  27.  *
  28.  *********************************************************************/
  29.  
  30.  
  31. #ifndef COMMAND_H
  32. #define COMMAND_H
  33.  
  34. #include "STRstring.h"
  35. #include "tix.h"
  36. #include "boolean.h"
  37.  
  38.  
  39. struct command_struct {
  40.      String  *datafromnet;
  41.  
  42.      boolean isGplus;
  43.  
  44.      char    *selstr;
  45.      char    *command;
  46.      char    *search;
  47.      
  48.      String  *secureuser;
  49.      String  *ticket;
  50.  
  51.      String  *askfile;
  52. };
  53.  
  54. typedef struct command_struct CMDobj;
  55.  
  56.  
  57. #define CMDgetSelstr(a)    ((a)->selstr)
  58. #define CMDsetSelstr(a,b)  ((a)->selstr=(b))
  59. #define CMDgetCommand(a)   ((a)->command)
  60. #define CMDsetCommand(a,b) ((a)->command=(b))
  61.  
  62. #define CMDgetSearch(a)    ((a)->search)
  63. #define CMDsetSearch(a,b)  ((a)->search=(b))
  64.  
  65. #define CMDgetData(a)      (STRget((a)->datafromnet))
  66. #define CMDsetData(a,b)    (STRset((a)->datafromnet, b))
  67.  
  68. #define CMDgetAskfile(a)   (STRget((a)->askfile))
  69. #define CMDsetAskfile(a,b) (STRset((a)->askfile,(b)))
  70.  
  71. #define CMDisGplus(a)      ((a)->isGplus)
  72. #define CMDsetGplus(a,b)   ((a)->isGplus=b)
  73.  
  74. #define CMDgetUser(a)      (STRget((a)->secureuser))
  75. #define CMDsetUser(a,b)    (STRset((a)->secureuser,(b)))
  76.  
  77. #define CMDgetTicket(a)    (STRget((a)->ticket))
  78. #define CMDsetTicket(a,b)  (STRset((a)->ticket,(b)))
  79.  
  80. CMDobj *CMDnew();
  81. void    CMDdestroy();
  82. void    CMDfromNet();
  83. void    CMDgetXtra();
  84. char   *CMDticketfromLine();
  85. char   *CMDgetView();
  86.  
  87. #endif
  88.