--- ray/src/common/resolu.h 2003/06/06 16:38:47 2.5 +++ ray/src/common/resolu.h 2004/01/02 11:35:17 2.9 @@ -1,4 +1,4 @@ -/* RCSid $Id: resolu.h,v 2.5 2003/06/06 16:38:47 schorsch Exp $ */ +/* RCSid $Id: resolu.h,v 2.9 2004/01/02 11:35:17 schorsch Exp $ */ /* * Definitions for resolution line in image file. * @@ -15,12 +15,14 @@ */ #ifndef _RAD_RESOLU_H_ #define _RAD_RESOLU_H_ + +#include + + #ifdef __cplusplus extern "C" { #endif -#include "copyright.h" - /* flags for scanline ordering */ #define XDECR 1 #define YDECR 2 @@ -70,10 +72,10 @@ extern void printargs(int ac, char **av, FILE *fp); extern int isformat(char *s); extern int formatval(char *r, char *s); extern void fputformat(char *s, FILE *fp); -extern int getheader(FILE *fp, int (*f)(), char *p); +typedef int gethfunc(char *s, void *p); /* callback to process header lines */ +extern int getheader(FILE *fp, gethfunc *f, void *p); extern int globmatch(char *pat, char *str); extern int checkheader(FILE *fin, char *fmt, FILE *fout); - #ifdef __cplusplus }