4 #define ZASS_DEBUG GW_LOG_DEBUGN(9)
5 #define ZASS_TYPE "zass"
7 #define ZASS_ID "EUROPAGATE/DTB/ID"
8 #define ZASS_NAME "EUROPAGATE E-mail/Z39.50 gateway"
9 #define ZASS_VERSION "development 0.1"
11 #define ZASS_MAXRECORDSIZE 10000
12 #define ZASS_PREFERREDMESSAGESIZE 10000
14 typedef struct zass *ZASS;
16 typedef struct zass_searchent
19 int status; /* status - boolean */
20 int setstatus; /* consult if !status. Value according to Z proto */
22 /* These two field provide info from a diagnostic rec returned with
24 int errcode; /* bib 1 assumed here. -1 if none provided */
25 char errstring[512]; /* Additional info from diagnostic rec, or "" */
28 typedef struct zass_records
30 int which; /* 0 = diagnostic, others according to z3950v3 */
31 char *record; /* marc or other */
33 int errcode; /* Only valid if which == 0 */
37 typedef struct zass_presentent
39 int num; /* # of recs returned */
40 int nextpos; /* next resultset position. 1==first record */
41 int presentstatus; /* status of set */
43 zass_records *records;
46 ZASS zass_open(char *host, int port);
47 const struct zass_searchent *zass_search(ZASS a, struct ccl_rpn_node *query,
48 char *resname, char *databases);
49 const struct zass_presentent *zass_present(ZASS a, char *resname, int start,