From: Dennis Schafroth Date: Wed, 3 Oct 2012 14:29:57 +0000 (+0200) Subject: Replace session_sorted_results structure with reclist_sortparms. After saving type... X-Git-Tag: v1.6.22~35 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=bd0842d306cd7004c22d8df9fd809689b17896c8;p=pazpar2-moved-to-github.git Replace session_sorted_results structure with reclist_sortparms. After saving type instead of (is)position, it became the same --- 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