projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Doxyfile file description. Indentation. No change of code.
[yaz-moved-to-github.git]
/
src
/
zget.c
diff --git
a/src/zget.c
b/src/zget.c
index
29fedc6
..
d953e22
100644
(file)
--- a/
src/zget.c
+++ b/
src/zget.c
@@
-1,9
+1,12
@@
/*
/*
- * Copyright (c) 1995-2003, Index Data.
+ * Copyright (c) 1995-2004, Index Data.
* See the file LICENSE for details.
* See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
*
*
- * $Id: zget.c,v 1.2 2003-11-27 15:37:23 adam Exp $
+ * $Id: zget.c,v 1.6 2004-10-15 00:19:01 adam Exp $
+ */
+/**
+ * \file zget.c
+ * \brief Implements Z39.50 package creator utilities
*/
#include <yaz/proto.h>
*/
#include <yaz/proto.h>
@@
-26,8
+29,8
@@
Z_InitRequest *zget_InitRequest(ODR o)
ODR_MASK_SET(r->protocolVersion, Z_ProtocolVersion_1);
ODR_MASK_SET(r->protocolVersion, Z_ProtocolVersion_2);
ODR_MASK_SET(r->protocolVersion, Z_ProtocolVersion_1);
ODR_MASK_SET(r->protocolVersion, Z_ProtocolVersion_2);
- r->preferredMessageSize = odr_intdup(o, 30*1024);
- r->maximumRecordSize = odr_intdup(o, 30*1024);
+ r->preferredMessageSize = odr_intdup(o, 1024*1024);
+ r->maximumRecordSize = odr_intdup(o, 1024*1024);
r->idAuthentication = 0;
r->implementationId = "81";
r->implementationName = "YAZ";
r->idAuthentication = 0;
r->implementationId = "81";
r->implementationName = "YAZ";
@@
-57,7
+60,7
@@
Z_InitResponse *zget_InitResponse(ODR o)
r->maximumRecordSize = odr_intdup(o, 30*1024);
r->result = odr_intdup(o, 1);
r->implementationId = "81";
r->maximumRecordSize = odr_intdup(o, 30*1024);
r->result = odr_intdup(o, 1);
r->implementationId = "81";
- r->implementationName = "Index Data/YAZ";
+ r->implementationName = "YAZ";
r->implementationVersion = YAZ_VERSION
#ifdef YAZ_DATE_STR
" (" YAZ_DATE_STR ")"
r->implementationVersion = YAZ_VERSION
#ifdef YAZ_DATE_STR
" (" YAZ_DATE_STR ")"
@@
-147,7
+150,7
@@
Z_DeleteResultSetRequest *zget_DeleteResultSetRequest(ODR o)
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
- r->deleteFunction = odr_intdup(o, Z_DeleteRequest_list);
+ r->deleteFunction = odr_intdup(o, Z_DeleteResultSetRequest_list);
r->num_resultSetList = 0;
r->resultSetList = 0;
r->otherInfo = 0;
r->num_resultSetList = 0;
r->resultSetList = 0;
r->otherInfo = 0;
@@
-206,7
+209,7
@@
Z_TriggerResourceControlRequest *zget_TriggerResourceControlRequest(ODR o)
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
- r->requestedAction = odr_intdup(o, Z_TriggerResourceCtrl_resourceReport);
+ r->requestedAction = odr_intdup(o, Z_TriggerResourceControlRequest_resourceReport);
r->prefResourceReportFormat = 0;
r->resultSetWanted = 0;
r->otherInfo = 0;
r->prefResourceReportFormat = 0;
r->resultSetWanted = 0;
r->otherInfo = 0;
@@
-246,7
+249,7
@@
Z_AccessControlRequest *zget_AccessControlRequest(ODR o)
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
- r->which = Z_AccessRequest_simpleForm;
+ r->which = Z_AccessControlRequest_simpleForm;
r->u.simpleForm = 0;
r->otherInfo = 0;
return r;
r->u.simpleForm = 0;
r->otherInfo = 0;
return r;
@@
-258,7
+261,7
@@
Z_AccessControlResponse *zget_AccessControlResponse(ODR o)
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
- r->which = Z_AccessResponse_simpleForm;
+ r->which = Z_AccessControlResponse_simpleForm;
r->u.simpleForm = 0;
r->diagnostic = 0;
r->otherInfo = 0;
r->u.simpleForm = 0;
r->diagnostic = 0;
r->otherInfo = 0;
@@
-308,7
+311,7
@@
Z_ResourceReportResponse *zget_ResourceReportResponse(ODR o)
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
odr_malloc(o, sizeof(*r));
r->referenceId = 0;
- r->resourceReportStatus = odr_intdup(o, Z_ResourceReportStatus_success);
+ r->resourceReportStatus = odr_intdup(o, Z_ResourceReportResponse_success);
r->resourceReport = 0;
r->otherInfo = 0;
return r;
r->resourceReport = 0;
r->otherInfo = 0;
return r;
@@
-331,8
+334,8
@@
Z_SortResponse *zget_SortResponse(ODR o)
Z_SortResponse *r = (Z_SortResponse *)odr_malloc(o, sizeof(*r));
r->referenceId = 0;
Z_SortResponse *r = (Z_SortResponse *)odr_malloc(o, sizeof(*r));
r->referenceId = 0;
- r->sortStatus = odr_intdup(o, Z_SortStatus_success);
- r->resultSetStatus = odr_intdup(o, Z_SortResultSetStatus_empty);
+ r->sortStatus = odr_intdup(o, Z_SortResponse_success);
+ r->resultSetStatus = odr_intdup(o, Z_SortResponse_empty);
r->diagnostics = 0;
r->resultCount = 0;
r->otherInfo = 0;
r->diagnostics = 0;
r->resultCount = 0;
r->otherInfo = 0;