X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=de5427f4a7d3bafb7c84a775a7cace133dea037e;hb=041649292ab528ffc1e9253b0667eb47622cebf8;hp=d51f5bb680be417403f158e852df8aed2a9fbe07;hpb=17ef116432f19c9229f95d4708221adb20d64b69;p=pazpar2-moved-to-github.git diff --git a/src/session.h b/src/session.h index d51f5bb..de5427f 100644 --- a/src/session.h +++ b/src/session.h @@ -26,9 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include "facet_limit.h" -#include "termlists.h" #include "reclists.h" -#include "http.h" struct record; struct client; @@ -54,15 +52,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 +146,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);