From bd0842d306cd7004c22d8df9fd809689b17896c8 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 3 Oct 2012 16:29:57 +0200 Subject: [PATCH] Replace session_sorted_results structure with reclist_sortparms. After saving type instead of (is)position, it became the same --- src/session.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/session.h b/src/session.h index 45fdbb3..6a4bf31 100644 --- a/src/session.h +++ b/src/session.h @@ -119,7 +119,7 @@ struct session { YAZ_MUTEX session_mutex; unsigned session_id; int settings_modified; - struct session_sorted_results *sorted_results; + struct reclist_sortparms *sorted_results; }; struct statistics { @@ -156,7 +156,7 @@ void session_destroy(struct session *s); void session_init_databases(struct session *s); void statistics(struct session *s, struct statistics *stat); -void session_sort(struct session *se, const char *field, int increasing, int clear_set); +void session_sort(struct session *se, struct reclist_sortparms *sp); enum pazpar2_error_code session_search(struct session *s, const char *query, const char *startrecs, @@ -193,13 +193,6 @@ void session_log(struct session *s, int level, const char *fmt, ...) ; #endif -struct session_sorted_results { - const char *field; - int increasing; - int position; - struct session_sorted_results *next; -}; - /* * Local variables: * c-basic-offset: 4 -- 1.7.10.4