From: Adam Dickmeiss Date: Wed, 19 Apr 1995 16:02:28 +0000 (+0000) Subject: Record type hack. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6983350d1082de0172364999b9cb448b8fe48485;p=egate.git Record type hack. --- diff --git a/zlayer/Makefile b/zlayer/Makefile index a2f13dc..5b8eb67 100644 --- a/zlayer/Makefile +++ b/zlayer/Makefile @@ -2,7 +2,10 @@ # Europagate, 1995 # # $Log: Makefile,v $ -# Revision 1.11 1995/04/19 09:24:01 quinn +# Revision 1.12 1995/04/19 16:02:28 adam +# Record type hack. +# +# Revision 1.11 1995/04/19 09:24:01 quinn # Fixed bug in zass_open - variable initialized after use # # Revision 1.10 1995/04/19 07:31:28 adam @@ -39,9 +42,9 @@ SHELL=/bin/sh #ZINC=-I$(ZPRE) #ZLIB=$(ZPRE)/libz3950.a -ZINC=-I../../yaz/include -ZDEFS= # -DUSE_XTIMOSI -ZLIB=../../yaz/lib/libyaz.a +ZINC=-I../../../quinn/proj/yaz/include +ZDEFS=-DUSE_XTIMOSI +ZLIB=../../../quinn/proj/yaz/lib/libyaz.a INCLUDE=-I. -I../include $(ZINC) #CFLAGS=-g -Wall -pedantic -ansi @@ -50,7 +53,7 @@ LIB=../lib/libzass.a PO=zaccess-yaz.o CPP=$(CC) -E DEFS=$(INCLUDE) -CFILES=zaccess.c +CFILES=zaccess-yaz.c all: $(LIB) diff --git a/zlayer/zaccess-yaz.c b/zlayer/zaccess-yaz.c index 98e82b8..1dd02b2 100644 --- a/zlayer/zaccess-yaz.c +++ b/zlayer/zaccess-yaz.c @@ -4,7 +4,10 @@ * Z39.50 API for the Email gateway - YAZ version * * $Log: zaccess-yaz.c,v $ - * Revision 1.3 1995/04/19 12:55:15 quinn + * Revision 1.4 1995/04/19 16:02:28 adam + * Record type hack. + * + * Revision 1.3 1995/04/19 12:55:15 quinn * Added auth. * * Revision 1.2 1995/04/19 09:24:02 quinn @@ -483,10 +486,14 @@ static int send_present(ZASS a, char *name, int start, int num, req.resultSetStartPoint = &start; req.numberOfRecordsRequested = # req.elementSetNames = 0; +#if 0 recsyn.proto = PROTO_Z3950; recsyn.class = CLASS_RECSYN; recsyn.value = form; req.preferredRecordSyntax = oid_getoidbyent(&recsyn); +#else + req.preferredRecordSyntax = 0; +#endif return send_apdu(a, &apdu); }