X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Freclists.h;h=2661cd8d70ad6830427a74d96c131a3d5d5cf46e;hb=7cebf8c8b85533360b140a7e5c769be4de9ea25c;hp=61a25ec70be27fbc47523e8db46290ece0d16052;hpb=8ca1269eac32c1ddc19d16dc4f74e9a1e3e0b8f9;p=pazpar2-moved-to-github.git diff --git a/src/reclists.h b/src/reclists.h index 61a25ec..2661cd8 100644 --- a/src/reclists.h +++ b/src/reclists.h @@ -1,7 +1,29 @@ +/* $Id: reclists.h,v 1.11 2007-07-16 17:01:46 adam Exp $ + Copyright (c) 2006-2007, Index Data. + +This file is part of Pazpar2. + +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 +Software Foundation; either version 2, or (at your option) any later +version. + +Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Pazpar2; see the file LICENSE. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. + */ + #ifndef RECLISTS_H #define RECLISTS_H #include "config.h" +#include "record.h" struct reclist { @@ -26,9 +48,27 @@ struct reclist_sortparms struct reclist_sortparms *next; }; +struct reclist_sortparms * +reclist_sortparms_insert_field_id(NMEM nmem, + struct reclist_sortparms **sortparms, + int field_id , + enum conf_sortkey_type type, + int increasing); + + +struct reclist_sortparms * +reclist_sortparms_insert(NMEM nmem, + struct reclist_sortparms **sortparms, + struct conf_service * service, + const char * name, + int increasing); + + struct reclist *reclist_create(NMEM, int numrecs); -struct record_cluster *reclist_insert(struct reclist *tl, struct record *record, - char *merge_key, int *total); +struct record_cluster *reclist_insert( struct reclist *tl, + struct conf_service *service, + struct record *record, + 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);