X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Frset.h;h=b37becc210123db59265bb283def7fa33194f433;hb=1285f0f6eeb151a62b69d8d3381c54ace03e55d4;hp=593d66628194043ec0098c7433dbae45e23ff1da;hpb=a876f6c2860bf13e36f47c8ce938d74b4ce98b8e;p=idzebra-moved-to-github.git diff --git a/include/rset.h b/include/rset.h index 593d666..b37becc 100644 --- a/include/rset.h +++ b/include/rset.h @@ -1,4 +1,4 @@ -/* $Id: rset.h,v 1.53 2005-06-02 11:59:53 adam Exp $ +/* $Id: rset.h,v 1.55 2005-06-07 07:41:04 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -35,6 +35,15 @@ YAZ_BEGIN_CDECL typedef struct rsfd *RSFD; typedef struct rset *RSET; +struct ord_list { + int ord; + struct ord_list *next; +}; + +struct ord_list *ord_list_create(NMEM nmem); +struct ord_list *ord_list_append(NMEM nmem, struct ord_list *list, int ord); +struct ord_list *ord_list_dup(NMEM nmem, struct ord_list *list); + /** * rset_term is all we need to know of a term to do ranking etc. * As far as the rsets are concerned, it is just a dummy pointer to @@ -51,11 +60,12 @@ struct rset_term { */ RSET rset; /** the rset corresponding to this term */ void *rankpriv;/** private stuff for the ranking algorithm */ + struct ord_list *ol; }; typedef struct rset_term *TERMID; TERMID rset_term_create (const char *name, int length, const char *flags, - int type, NMEM nmem); + int type, NMEM nmem, struct ord_list *ol); /** rsfd is a "file descriptor" for reading from a rset */ struct rsfd { /* the stuff common to all rsfd's. */