#include <netdb.h>
+#include <libxslt/xsltutils.h>
+#include <libxslt/transform.h>
+
#include <yaz/comstack.h>
#include <yaz/pquery.h>
#include <yaz/ccl.h>
#include <yaz/yaz-ccl.h>
+
#include "termlists.h"
#include "relevance.h"
#include "eventl.h"
-#define MAX_DATABASES 512
-
struct record {
struct client *client;
int target_offset;
struct database {
struct host *host;
char *url;
- char databases[MAX_DATABASES][128];
+ char **databases;
int errors;
struct database *next;
};
yaz_marc_t yaz_marc;
ODR odr_out;
ODR odr_in;
+ xsltStylesheetPtr xsl;
};
struct hitsbytarget *hitsbytarget(struct session *s, int *count);
int load_targets(struct session *s, const char *fn);
void statistics(struct session *s, struct statistics *stat);
char *search(struct session *s, char *query);
-struct record **show(struct session *s, int start, int *num, int *total, int *sumhits);
+struct record **show(struct session *s, int start, int *num, int *total, int *sumhits, NMEM nmem_show);
struct termlist_score **termlist(struct session *s, int *num);
void session_set_watch(struct session *s, int what, session_watchfun fun, void *data);