X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Freclists.h;h=bc02f107e26939aae795e1e924e8c578caf5842c;hb=b7c5f432169f9b532ad006c369e28631cdf3c8ce;hp=d49acff368f6747984efe6a3a34b06b3cf6d72b1;hpb=aa06e37ed93f09b830953e51f28a0c90dc5138f5;p=pazpar2-moved-to-github.git diff --git a/src/reclists.h b/src/reclists.h index d49acff..bc02f10 100644 --- a/src/reclists.h +++ b/src/reclists.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2009 Index Data + Copyright (C) 2006-2010 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -34,14 +34,16 @@ struct reclist_sortparms struct reclist_sortparms *next; }; -struct reclist *reclist_create(NMEM, int numrecs); -struct record_cluster *reclist_insert( struct reclist *tl, - struct conf_service *service, - struct record *record, - char *merge_key, int *total); +struct reclist *reclist_create(NMEM); +void reclist_destroy(struct reclist *l); +struct record_cluster *reclist_insert(struct reclist *tl, + struct conf_service *service, + struct record *record, + const char *merge_key, int *total); void reclist_sort(struct reclist *l, struct reclist_sortparms *parms); struct record_cluster *reclist_read_record(struct reclist *l); -void reclist_rewind(struct reclist *l); +void reclist_enter(struct reclist *l); +void reclist_leave(struct reclist *l); struct reclist_sortparms *reclist_parse_sortparms(NMEM nmem, const char *parms, struct conf_service *service);