/**********************************************************************
 * 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_h[] = "$Header$";
#endif lint

#include <discuss/discuss.h>

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


/*typedef trn_info2 trn_info3; */ /*  ukim ***/

typedef trn_info3 ltrn;		

/* special transaction numbers */
#define LUCY_NULLQ ((trn_nums) 0)
#define LUCY_LOWQ ((trn_nums) 2)

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

struct lmeeting {
  mtg_info info;
  name_blk nb;			/* for discuss */
  char *dir;			/* directory to cache trn text */
  int ntrn;			/* number of cached ltrn structs */
  ltrn **trn;			/* array of cached ltrns */
};

#define LMEETING struct lmeeting

/* Global variables */
extern char *luv_host, *luv_qdirname, *luv_bdirname, *luv_adirname,
  *luv_email, *luv_topdir, luv_context[];
extern LMEETING luv_qmtg, luv_bmtg, luv_amtg, *luv_curmtgp;

/* prototypes or function declarations */
#include "liblucy-ptypes.h"

/* Things that really should be declared outside lucy but aren't */
char *getenv();
