X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Frset.h;h=e6bd85677a3238199c4c50cf7bcdfd3cd117d599;hb=2e4e9c6def27f1e1463dcb6f205fab6a98054f38;hp=cd8312adea932919d201e36166de772150132eaa;hpb=7ead84f2bb444f7a420b1d1c8e8c47aec61f156c;p=idzebra-moved-to-github.git diff --git a/include/rset.h b/include/rset.h index cd8312a..e6bd856 100644 --- a/include/rset.h +++ b/include/rset.h @@ -1,4 +1,4 @@ -/* $Id: rset.h,v 1.21 2004-01-30 11:43:40 heikki Exp $ +/* $Id: rset.h,v 1.23 2004-08-03 14:54:41 heikki Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -46,7 +46,9 @@ 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); + void (*f_pos)(RSFD rfd, int *current, int *total); + /* FIXME - Should be 64-bit ints !*/ + /* 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 +56,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, int *current, int *total); struct rset_term { char *name;