X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Freclists.h;h=bc02f107e26939aae795e1e924e8c578caf5842c;hb=9a29dfe185cbcbec55a5ca0a3c491b03ff45222f;hp=a35643192b51f0542a36c3c4d9a531ec12d5cf76;hpb=03931e4f790152dfec6ae6ca615d49e84940b987;p=pazpar2-moved-to-github.git diff --git a/src/reclists.h b/src/reclists.h index a356431..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 @@ -35,13 +35,15 @@ struct reclist_sortparms }; struct reclist *reclist_create(NMEM); -struct record_cluster *reclist_insert( struct reclist *tl, - struct conf_service *service, - struct record *record, - char *merge_key, int *total); +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);