X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=a607c7732dcce338b3094c8ab35f9003bbd81b68;hb=817e3ec506c4095bc4fcc1923cee36153ef4ee43;hp=d51f5bb680be417403f158e852df8aed2a9fbe07;hpb=17ef116432f19c9229f95d4708221adb20d64b69;p=pazpar2-moved-to-github.git diff --git a/src/session.h b/src/session.h index d51f5bb..a607c77 100644 --- a/src/session.h +++ b/src/session.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2013 Index Data + Copyright (C) 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 @@ -26,9 +26,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include "facet_limit.h" -#include "termlists.h" +#include "relevance.h" #include "reclists.h" -#include "http.h" struct record; struct client; @@ -54,15 +53,6 @@ enum pazpar2_error_code { PAZPAR2_LAST_ERROR }; -// Represents a database -struct database { - char *id; - int num_settings; - struct setting **settings; - struct database *next; -}; - - // Represents a database as viewed from one session, possibly with settings overriden // for that session struct session_database @@ -157,6 +147,7 @@ struct hitsbytarget { struct hitsbytarget *get_hitsbytarget(struct session *s, int *count, NMEM nmem); struct session *new_session(NMEM nmem, struct conf_service *service, unsigned session_id); +int sessions_count(void); void session_destroy(struct session *s); void session_init_databases(struct session *s); void statistics(struct session *s, struct statistics *stat); @@ -169,6 +160,7 @@ enum pazpar2_error_code session_search(struct session *s, const char *query, const char *maxrecs, const char *filter, const char *limit, const char **addinfo, + const char **addinfo2, struct reclist_sortparms *sort_parm, const char *mergekey, const char *rank);