X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=76786f4042d22ad00c2b770199c73ac90b13d124;hb=efe1343048be89213f3a9933e6b9fbbd481f3d61;hp=85f1b8faab8e41e99c7af9d53193fd2f27c133dd;hpb=98124d717cec040bd63d002a95fded3ab82064fc;p=pazpar2-moved-to-github.git diff --git a/src/session.h b/src/session.h index 85f1b8f..76786f4 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,6 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include "facet_limit.h" +#include "relevance.h" #include "reclists.h" struct record; @@ -112,6 +113,7 @@ struct session { unsigned session_id; int settings_modified; facet_limits_t facet_limits; + int clients_starting; struct reclist_sortparms *sorted_results; }; @@ -181,10 +183,13 @@ void show_single_stop(struct session *s, struct record_cluster *rec); int session_set_watch(struct session *s, int what, session_watchfun fun, void *data, struct http_channel *c); int session_active_clients(struct session *s); int session_is_preferred_clients_ready(struct session *s); -void session_apply_setting(struct session *se, char *dbname, char *setting, char *value); +void session_apply_setting(struct session *se, const char *dbname, + const char *setting, const char *value); const char *session_setting_oneval(struct session_database *db, int offset); int ingest_record(struct client *cl, const char *rec, int record_no, NMEM nmem); +int ingest_xml_record(struct client *cl, xmlDoc *xdoc, + int record_no, NMEM nmem, int cached_copy); void session_alert_watch(struct session *s, int what); void add_facet(struct session *s, const char *type, const char *value, int count);