X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fsession.c;h=439ad7b91494debd15256178961914d82cf359e3;hb=950f9ae98a1342eba4845091cc65bdfc45dd275b;hp=8b76a5390f7b3086c1112b27cac0f52065b1632d;hpb=31babd0a7a0d4ee7091cfb740205ab6fe1c89ae5;p=pazpar2-moved-to-github.git diff --git a/src/session.c b/src/session.c index 8b76a53..439ad7b 100644 --- a/src/session.c +++ b/src/session.c @@ -921,6 +921,8 @@ struct session *new_session(NMEM nmem, struct conf_service *service, return session; } +const char * client_get_suggestions_xml(struct client *cl, WRBUF wrbuf); + static struct hitsbytarget *hitsbytarget_nb(struct session *se, int *count, NMEM nmem) { @@ -949,6 +951,9 @@ static struct hitsbytarget *hitsbytarget_nb(struct session *se, res[*count].connected = client_get_connection(cl) ? 1 : 0; session_settings_dump(se, client_get_database(cl), w); res[*count].settings_xml = nmem_strdup(nmem, wrbuf_cstr(w)); + wrbuf_rewind(w); + wrbuf_puts(w, ""); + res[*count].suggestions_xml = nmem_strdup(nmem, client_get_suggestions_xml(cl, w)); wrbuf_destroy(w); (*count)++; }