#ifndef _DATAP_H_
#define _DATAP_H_
#include <stdio.h>
#include <sys/types.h>

#include "registry.h"

#include "data.h"

#define my_ctime(t) 	{strcpy(t_str, (char *)ctime(&t)); \
			 t_str[24] = '\0';} /* get rid of CR in str */

typedef struct st_AlDCinfo {
	Bool	enabled,
		in_time;
	FILE	*fp;
	char	*file;
	time_t	start,
		stop;
	int	data;
} AlDCinfoSt;

Registry	Rule_act,
		msg_act;

typedef struct st_ActHist {
	int	fire_count;
	int	test_count;
} ActHistSt;

typedef ActHistSt	*ActHist;

typedef AlDCinfoSt	*AlDCinfo;

AlDCinfoSt	AlDC_plugs[PLUGS];

#define DCF_VERSION	6
#define	CNV_FR_DCFV	5	/* old format version from which to convert */

#endif
