X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=include%2Frset.h;h=09dcf6d0aef7ac0f63cfbc2ff54f2d149703d454;hb=714fc16a13c620527ebc11d254ba4e7b299a25f0;hp=7883d04fb4cb1aaba29bd5fc4045f2976b2c54ef;hpb=e6b40b4f140e8f7348fff1f7be78ac78946421ff;p=idzebra-moved-to-github.git diff --git a/include/rset.h b/include/rset.h index 7883d04..09dcf6d 100644 --- a/include/rset.h +++ b/include/rset.h @@ -1,4 +1,4 @@ -/* $Id: rset.h,v 1.22 2004-08-03 12:15:44 heikki Exp $ +/* $Id: rset.h,v 1.24 2004-08-04 09:59:03 heikki Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -46,7 +46,8 @@ struct rset_control int (*f_forward)(RSET ct, RSFD rfd, void *buf, int *term_index, int (*cmpfunc)(const void *p1, const void *p2), const void *untilbuf); -/* int (*f_count)(RSET ct); */ /* FIXME - remove this and add pos */ + void (*f_pos)(RSFD rfd, zint *current, zint *total); + /* returns -1,-1 if pos function not implemented for this type */ int (*f_read)(RSFD rfd, void *buf, int *term_index); int (*f_write)(RSFD rfd, const void *buf); }; @@ -54,6 +55,7 @@ struct rset_control int rset_default_forward(RSET ct, RSFD rfd, void *buf, int *term_index, int (*cmpfunc)(const void *p1, const void *p2), const void *untilbuf); +void rset_default_pos(RSFD rfd, zint *current, zint *total); struct rset_term { char *name;