/* This file is part of the yazpp toolkit.
- * Copyright (C) 1998-2009 Index Data and Mike Taylor
+ * Copyright (C) 1998-2013 Index Data and Mike Taylor
* See the file LICENSE for details.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <yaz/log.h>
#include <yazpp/z-server.h>
{
bool_t *sr = (bool_t *)odr_malloc (odr_encode(), sizeof(*sr));
*sr = 1;
-
+
int toget = 0;
-
+
Z_RecordComposition comp, *compp = 0;
int hits = *res->resultCount;
-
+
Odr_int *nulint = (Odr_int *)odr_malloc (odr_encode(), sizeof(*nulint));
*nulint = 0;
-
+
comp.which = Z_RecordComp_simple;
/* how many records does the user agent want, then? */
if (hits <= *req->smallSetUpperBound)
if ((comp.u.simple = req->mediumSetElementSetNames))
compp = ∁
}
-
+
if (toget && !res->records)
{
res->presentStatus = (Odr_int *)
odr_malloc (odr_encode(), sizeof(Odr_int));
*res->presentStatus = Z_PresentStatus_success;
res->records =
- pack_records(s, req->resultSetName, 1, toget, compp,
+ pack_records(s, req->resultSetName, 1, toget, compp,
res->nextResultSetPosition,
res->presentStatus,
req->preferredRecordSyntax);
Z_PresentResponse *res)
{
res->records =
- pack_records (s, req->resultSetId,*req->resultSetStartPoint,
+ pack_records (s, req->resultSetId,*req->resultSetStartPoint,
*req->numberOfRecordsRequested,
req->recordComposition,
res->nextResultSetPosition,
{
Z_Options *req = initRequest->options;
Z_Options *res = initResponse->options;
-
+
if (ODR_MASK_GET(req, Z_Options_search))
ODR_MASK_SET(res, Z_Options_search);
if (ODR_MASK_GET(req, Z_Options_present))
}
int Yaz_Facility_Retrieval::recv(Z_Server *s, Z_APDU *apdu_request)
-{
+{
Z_APDU *apdu_response;
m_odr_encode = s->odr_encode();
m_odr_decode = s->odr_decode();