struct database {
struct host *host;
char *url;
+ char *name;
char **databases;
int errors;
+ struct zr_explain *explain;
struct conf_queryprofile *qprofile;
struct conf_retrievalprofile *rprofile;
struct database *next;
};
+struct database_criterion_value {
+ char *value;
+ struct database_criterion_value *next;
+};
+
+struct database_criterion {
+ char *name;
+ struct database_criterion_value *values;
+ struct database_criterion *next;
+};
// Represents a physical, reusable connection to a remote Z39.50 host
struct connection {
};
struct hitsbytarget {
- char id[256];
+ char *id;
+ char *name;
int hits;
int diagnostic;
int records;
};
struct hitsbytarget *hitsbytarget(struct session *s, int *count);
-int select_targets(struct session *se);
+int select_targets(struct session *se, struct database_criterion *crit);
struct session *new_session();
void destroy_session(struct session *s);
int load_targets(struct session *s, const char *fn);
void statistics(struct session *s, struct statistics *stat);
-char *search(struct session *s, char *query);
+char *search(struct session *s, char *query, char *filter);
struct record_cluster **show(struct session *s, struct reclist_sortparms *sp, int start,
int *num, int *total, int *sumhits, NMEM nmem_show);
struct record_cluster *show_single(struct session *s, int id);