-/* $Id: pazpar2.c,v 1.8 2007-01-03 16:59:32 quinn Exp $ */;
+/* $Id: pazpar2.c,v 1.10 2007-01-04 03:16:14 quinn Exp $ */;
#include <stdlib.h>
#include <stdio.h>
yaz_log(YLOG_WARN, "Unexpected element %s in internal record", n->name);
}
+ xmlFreeDoc(xdoc);
+
relevance_donerecord(se->relevance, head);
se->total_records++;
return c;
}
+int session_active_clients(struct session *s)
+{
+ struct client *c;
+ int res = 0;
+
+ for (c = s->clients; c; c = c->next)
+ if (c->connection && (c->state == Client_Connecting ||
+ c->state == Client_Initializing ||
+ c->state == Client_Searching ||
+ c->state == Client_Presenting))
+ res++;
+
+ return res;
+}
+
char *search(struct session *se, char *query)
{
int live_channels = 0;