cludefs_h

/*
cludefs.h
*/
/********************************************************/
/*  Copyright 1989, Universities Research Association.  */
/*  All rights reserved. Some portions of this software */
/*  were originally developed for FNAL's FIRUS consoles.*/
/*  This code was designed to be portable and will      */
/*  service Loma Linda, Fermilab's ACNET, and Fermilab's*/
/*  DZero control systems.   Tim Zingelman, June, 1989  */
/********************************************************/
#ifndef cludefs
#define cludefs

/* constants */
#define CLU_K_FMT_RECLEN	128

#define CLU_K_INIT		41

/* last operation / status codes */
#define CLU_K_OPEN		42
#define CLU_K_CLOSED		43
#define CLU_K_ADD		44
#define CLU_K_GET		45

/* operating mode codes */
#define CLU_K_UPDATE		46
#define CLU_K_WRITE		46
#define CLU_K_READ		47
#define CLU_K_CNSLOG		48
extern "C" {
int clu_add(char const *buffer);
int clu_close(void);
int clu_console_slot_to_format(int console_slot, int console_instance);
int clu_create(char const *format_file, char const *logfile_name,
	       int const *max_records, short *record_width);
int clu_format_to_console_slot(int format_number);
int clu_get(int const *relative_record, char *record_buffer, char *time_text);
int clu_open(char const *format_file, int const *format_number,
	     int const *open_mode, int *maxrec=NULL, int console_num=0,
	     int *record_length=NULL);
}
#endif