/* This file is part of Pazpar2.
- Copyright (C) 2006-2010 Index Data
+ Copyright (C) 2006-2013 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
int offset;
enum conf_sortkey_type type;
int increasing;
+ char *name;
struct reclist_sortparms *next;
};
struct reclist *reclist_create(NMEM);
void reclist_destroy(struct reclist *l);
+void reclist_limit(struct reclist *l, struct session *session, int lazy);
struct record_cluster *reclist_insert(struct reclist *tl,
struct conf_service *service,
struct record *record,
- const char *merge_key, int *total);
+ struct record_metadata_attr *merge_keys,
+ int *total);
void reclist_sort(struct reclist *l, struct reclist_sortparms *parms);
struct record_cluster *reclist_read_record(struct reclist *l);
void reclist_enter(struct reclist *l);
int reclist_get_num_records(struct reclist *l);
struct record_cluster *reclist_get_cluster(struct reclist *l, int i);
+int reclist_sortparms_cmp(struct reclist_sortparms *sort1, struct reclist_sortparms *sort2);
#endif