1 /* $Id: reclists.h,v 1.7 2007-04-17 07:52:03 marc Exp $
2 Copyright (c) 2006-2007, Index Data.
4 This file is part of Pazpar2.
6 Pazpar2 is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with Pazpar2; see the file LICENSE. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
29 struct reclist_bucket **hashtable;
33 struct record_cluster **flatlist;
41 // This is a recipe for sorting. First node in list has highest priority
42 struct reclist_sortparms
45 enum conf_sortkey_type type;
47 struct reclist_sortparms *next;
50 struct reclist *reclist_create(NMEM, int numrecs);
51 struct record_cluster *reclist_insert( struct reclist *tl,
52 struct conf_service *service,
53 struct record *record,
54 char *merge_key, int *total);
55 void reclist_sort(struct reclist *l, struct reclist_sortparms *parms);
56 struct record_cluster *reclist_read_record(struct reclist *l);
57 void reclist_rewind(struct reclist *l);
58 struct reclist_sortparms *reclist_parse_sortparms(NMEM nmem, const char *parms);
65 * indent-tabs-mode: nil
67 * vim: shiftwidth=4 tabstop=8 expandtab