#ifndef _MONITORDEFS_H_
#define _MONITORDEFS_H_

/*-=-=-=-=-=-=-=-=-=-=-=- RCCL/RCI Notice of Copyright -=-=-=-=-=-=-=-=-=-=-*
 *									    *
 *	Copyright (C) 1991 by John E. Lloyd.				    *
 *									    *
 *	Information on copyright permissions, as well as a complete	    *
 *	disclaimer of warranty, is given in the file COPYRIGHT.		    *
 *									    *
 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

/*---------------------------------------------------------------------------
 *
 * DESCRIPTION:	Private information used by the RCI monitors in 
 *		controlling tasks.
 * 
 * AUTHOR/DATE:	John Lloyd, Fall 1987
 *
 * MODIFICATION HISTORY:
 *
 *--------------------------------------------------------------------------*/

#include "../h/rciTask.h"

typedef struct _TASK_ENTRY {		
	/* used to make the entries on the 'task queue' kept by 
	   each monitor */

	struct _TASK_ENTRY *prev;
	struct _TASK_ENTRY *next;
	RCI_DESC *td;
} TASK_ENTRY;	

extern TASK_ENTRY *getTaskEntry();

#define MAX_TIMER_REQS	(2*MAX_RCI_TASKS+1)

typedef struct _TIMER_REQ {
	/* Timer request structure */

	struct _TIMER_REQ *next;
	struct _TIMER_REQ *prev;
	int (*fxn)();
	int arg;
	int count;
	int *handle;
	int taskId;
} TIMER_REQ;

#endif
