/* Control and access for choices */

#ifndef __nfchoices_h
#define __nfchoices_h

typedef enum { NoLog = 8, AppendLog, OverWriteLog } LogType;

typedef struct {
  char user[32];
  char password[32];
  char foundfolder[256];
  LogType log;
  char logfile[256];
  char resultfile[256];
  char foundfile[256];
  int copy;
  int xpos, ypos;	/* Position to open find window, (0,0) for default */
  int transient;	/* Whether launched as a transient utility
  			   by another task */
  int extctrl;		/* Whether expression etc controlled by other task */
  int status, statusx, statusy;	/* Whether to show status and position */
} NFChoices;

extern NFChoices nfchoices;

extern void nfchoices_initialise(const char *choices_file);
/* NULL filename for default choices */
extern void nfchoices_setuser(void);

#endif
