X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frsnull.c;h=c02ff4fdb53601460197d986f33d9606e216f873;hb=714fc16a13c620527ebc11d254ba4e7b299a25f0;hp=69e1d00de3faddd8a4ea904e83f2c69ef0c7d283;hpb=9949fe7912e81ebf77d345a0581dc31a439bc2b8;p=idzebra-moved-to-github.git diff --git a/rset/rsnull.c b/rset/rsnull.c index 69e1d00..c02ff4f 100644 --- a/rset/rsnull.c +++ b/rset/rsnull.c @@ -1,4 +1,4 @@ -/* $Id: rsnull.c,v 1.16 2004-01-16 15:27:35 heikki Exp $ +/* $Id: rsnull.c,v 1.19 2004-08-04 09:59:03 heikki Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -23,15 +23,16 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include -#include +#include #include +#include static void *r_create(RSET ct, const struct rset_control *sel, void *parms); static RSFD r_open (RSET ct, int flag); static void r_close (RSFD rfd); static void r_delete (RSET ct); static void r_rewind (RSFD rfd); -static int r_count (RSET ct); +static void r_pos (RSFD rfd, zint *current, zint *total); static int r_read (RSFD rfd, void *buf, int *term_index); static int r_write (RSFD rfd, const void *buf); @@ -44,7 +45,7 @@ static const struct rset_control control = r_delete, r_rewind, rset_default_forward, - r_count, + r_pos, r_read, r_write, }; @@ -92,9 +93,13 @@ static void r_rewind (RSFD rfd) logf (LOG_DEBUG, "rsnull_rewind"); } -static int r_count (RSET ct) +static void r_pos (RSFD rfd, zint *current, zint *total) { - return 0; + assert(rfd); + assert(current); + assert(total); + *total=0; + *current=0; } static int r_read (RSFD rfd, void *buf, int *term_index)