#ifndef _RCI_H_
#define _RCI_H_

#ifndef PIDHSZ
#include "../h/proc.h"
#endif

typedef struct _rciinfo {
	  struct proc *proc;
	  int p0br;
	  int p0lr;
	  int p1br;
	  int p1lr;
	  CRASHINFO lastcrash;
	  int hbticks;
	  int (*hbfxn)();
	  int hbarg;
	  int flags;
#define RCI_OPEN 0x00000001
#define RCI_BUSY 0x00000002
#define RCI_SIGS 0x00000004
	  int crashsig;
	  int pid;
	  int (*ifxn)();
	  int iarg;
	  struct rcitimeout {
	    struct rcitimeout *link;
	    struct _rciinfo *info;
	    int clockno;
	    int when;
	    int (*handler)();
	    int argument;
	    struct rcitimeout *explink;
	    int (*exphandler)();
	    int expargument;
	    } timeout;
	  } RCIINFO;

#endif
