From 6983350d1082de0172364999b9cb448b8fe48485 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 19 Apr 1995 16:02:28 +0000 Subject: [PATCH] Record type hack. --- zlayer/Makefile | 13 ++++++++----- zlayer/zaccess-yaz.c | 9 ++++++++- 2 files changed, 16 insertions(+), 6 deletions(-) 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); } -- 1.7.10.4