X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsession.h;h=fdecbc4353cbb543996689db9e4c98aad3f9564f;hb=a768cf2deb0154265ca27faa634c4c0e9e76939d;hp=d16f3fb9408f6f8ece04000469df5cbccbd912c4;hpb=3977c8df676dae5ee5019a7f63489f08243987f4;p=pazpar2-moved-to-github.git diff --git a/src/session.h b/src/session.h index d16f3fb..fdecbc4 100644 --- a/src/session.h +++ b/src/session.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2010 Index Data + Copyright (C) 2006-2011 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 @@ -120,6 +120,7 @@ struct session { int number_of_warnings_unknown_metadata; normalize_cache_t normalize_cache; YAZ_MUTEX session_mutex; + unsigned session_id; }; struct statistics { @@ -142,12 +143,12 @@ struct hitsbytarget { int records; const char *state; int connected; - WRBUF settings_xml; + char *settings_xml; }; struct hitsbytarget *hitsbytarget(struct session *s, int *count, NMEM nmem); struct session *new_session(NMEM nmem, struct conf_service *service, - const char *name); + unsigned session_id); void destroy_session(struct session *s); void session_init_databases(struct session *s); int load_targets(struct session *s, const char *fn); @@ -179,7 +180,11 @@ void session_alert_watch(struct session *s, int what); void pull_terms(NMEM nmem, struct ccl_rpn_node *n, char **termlist, int *num); void add_facet(struct session *s, const char *type, const char *value, int count); - +void session_log(struct session *s, int level, const char *fmt, ...) +#ifdef __GNUC__ + __attribute__ ((format (printf, 3, 4))) +#endif + ; #endif /*