--- ray/src/rt/data.h 1996/02/15 18:46:56 2.3 +++ ray/src/rt/data.h 2003/06/07 00:54:58 2.6 @@ -1,11 +1,16 @@ -/* Copyright (c) 1996 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: data.h,v 2.6 2003/06/07 00:54:58 schorsch Exp $ */ /* - * data.h - header file for routines which interpolate data. + * Header for data file loading and computation routines. */ +#ifndef _RAD_DATA_H_ +#define _RAD_DATA_H_ +#ifdef __cplusplus +extern "C" { +#endif + +#include "copyright.h" + #define MAXDDIM 5 /* maximum data dimensions */ #define DATATYPE float /* single precision to save space */ @@ -27,6 +32,15 @@ typedef struct datarray { struct datarray *next; /* next array in list */ } DATARRAY; /* a data array */ -extern DATARRAY *getdata(), *getpict(); -extern double datavalue(); +extern DATARRAY *getdata(char *dname); +extern DATARRAY *getpict(char *pname); +extern void freedata(DATARRAY *dta); +extern double datavalue(DATARRAY *dp, double *pt); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_DATA_H_ */ +