X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Frset.h;h=87b47aecf933c909285007d07905cd8a0a7ece8c;hb=004bd919116b88cd6dfd0594de51bde7d62296be;hp=ec09bad60c88e6971e028f9509ffc7844456f82a;hpb=98912d364cb21abf4c2f3229d5578e2a3159f616;p=idzebra-moved-to-github.git diff --git a/include/rset.h b/include/rset.h index ec09bad..87b47ae 100644 --- a/include/rset.h +++ b/include/rset.h @@ -1,4 +1,4 @@ -/* $Id: rset.h,v 1.45 2005-01-15 20:47:15 adam Exp $ +/* $Id: rset.h,v 1.47 2005-01-17 01:21:43 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -23,8 +23,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef RSET_H #define RSET_H -#include - /* unfortunately we need the isam includes here, for the arguments for */ /* rsisamX_create */ #include @@ -144,6 +142,7 @@ typedef struct rset char my_nmem; /* Should the nmem be destroyed with the rset? */ /* 1 if created with it, 0 if passed from above */ RSFD free_list; /* all rfd's allocated but not currently in use */ + RSFD use_list; /* all rfd's in use */ int scope; /* On what level do we count hits and compare them? */ TERMID term; /* the term thing for ranking etc */ } rset; @@ -166,6 +165,7 @@ typedef struct rset RSFD rfd_create_base(RSET rs); void rfd_delete_base(RSFD rfd); +int rfd_is_last(RSFD rfd); RSET rset_create_base(const struct rset_control *sel, NMEM nmem,