/**********************************************************************
 * lucy/lucy.h -- internal header file for lucy
 *
 * $Source$
 * $Author$
 * $Header$
 *
 * Copyright 1990 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file
 * "mit-copyright.h".
 **********************************************************************/
#include "mit-copyright.h"

#ifndef lint
static char rcsid_lucy/lucy.h[] = "$Header$";
#endif /* lint */

#include <discuss/discuss.h>
#include "memory.h"

typedef trn_nums lucy_qident;	/* identifier for question */

#define LUCY_NULLQ ((trn_nums) 0)
#define LUCY_LOWQ ((trn_nums) 2)
#define LUCY_VERSION "0.1"
#define LUCY_INBOX "lucyx"	/* discuss meeting for new questions */
#define LUCY_BROWSER "lucyb"	/* discuss meeting for posted answers */
#define LUCY_ARCHIVE "lucya"	/* discuss meeting for posted answers */

/* Flags to mark questions */
#define LUCY_FORWARDED (1<<8)
#define LUCY_ANSWERED (1<<9)
#define LUCY_POSTED (1<<10)
#define LUCY_REPLIED (1<<11)

#define LUCY_TEXTDIR "/afs/athena.mit.edu/astaff/project/lucydev/text/"
#define LUCY_QHEAD "qhead.txt"
#define LUCY_QTAIL "qtail.txt"

typedef struct lucyqnode *lucyqlist;
struct lucyqnode{
  trn_info2 info;
  int status;
  lucyqlist next;
};

extern char *lucy_directory;	/* defined in main.c */
extern char *lucy_status[];
#include "ptypes.h"		/* contains all function prototypes */

#ifdef DEBUG
#define LUCY_DEBUG(x) com_err x
#else /* DEBUG */
#define LUCY_DEBUG(x)
#endif /* DEBUG */
