X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Freclists.h;h=51653b1eee62d32aab513f0413ee556a0436a1a2;hb=3d99aecedf9d6e6ebeadcedbee081049b03dbbf8;hp=b74373e67081318b9c8ae867d5003707e41e940a;hpb=4bd52b143846801cd8d0d9a70c6cc2021132bd5f;p=pazpar2-moved-to-github.git diff --git a/src/reclists.h b/src/reclists.h index b74373e..51653b1 100644 --- a/src/reclists.h +++ b/src/reclists.h @@ -1,7 +1,5 @@ -/* $Id: reclists.h,v 1.7 2007-04-17 07:52:03 marc Exp $ - Copyright (c) 2006-2007, Index Data. - -This file is part of Pazpar2. +/* This file is part of Pazpar2. + Copyright (C) 2006-2009 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 @@ -14,15 +12,16 @@ 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. - */ +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ #ifndef RECLISTS_H #define RECLISTS_H -#include "config.h" +#include "pazpar2_config.h" +#include "record.h" struct reclist { @@ -47,6 +46,22 @@ 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 conf_service *service, @@ -62,7 +77,9 @@ struct reclist_sortparms *reclist_parse_sortparms(NMEM nmem, const char *parms); /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +