/* WIDE AREA INFORMATION SERVER SOFTWARE:
   No guarantees or restrictions.  See the readme file for the full standard
   disclaimer.

   This is part of the X user-interface for the WAIS software.  Do with it
   as you please.

   jonathan@Think.COM
 *
 * $Log:	text.h,v $
 * Revision 1.2  92/03/17  14:17:54  jonathan
 * Prototyped functions.
 * 
 */

#ifndef _H_TEXT
#define _H_TEXT

typedef struct textbuff {
  Widget	shell;
  Widget	textwindow;
  Widget	status;
  DocumentID 	docid;
  char *	text;
  char *	type;
  long 		size;
} _Textbuff, *Textbuff;

typedef struct textlist {
  Textbuff thisText;
  struct textlist *nextText;
} _TextList, *TextList;

/* functions */

TextList NewText _AP((void));
void KillText _AP((Textbuff t));
Textbuff findText _AP((Widget w));
Textbuff findTextDoc _AP((DocumentID doc, char* type));

#endif
