Skip to content

Commit

Permalink
GFS: Allow External type TaskPackage response YAZ-915
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdickmeiss committed Oct 8, 2018
1 parent f3a5e77 commit 527484b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/yaz/backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ typedef struct bend_esrequest_rr
int errcode; /* 0==success, -1==accepted, >0 = failure */
char *errstring; /* system error string or NULL */
Z_TaskPackage *taskPackage;
Z_External *taskPackageExt;
} bend_esrequest_rr;

/** \brief Information for Z39.50 segment handler */
Expand Down
2 changes: 2 additions & 0 deletions src/seshigh.c
Original file line number Diff line number Diff line change
Expand Up @@ -3450,6 +3450,7 @@ static Z_APDU *process_ESRequest(association *assoc, request *reqb)
esrequest.errstring = NULL;
esrequest.association = assoc;
esrequest.taskPackage = 0;
esrequest.taskPackageExt = 0;
esrequest.referenceId = req->referenceId;

if (ext)
Expand Down Expand Up @@ -3511,6 +3512,7 @@ static Z_APDU *process_ESRequest(association *assoc, request *reqb)

}
/* Do something with the members of bend_extendedservice */
resp->taskPackage = esrequest.taskPackageExt;
if (esrequest.taskPackage)
{
resp->taskPackage = z_ext_record_oid(
Expand Down

0 comments on commit 527484b

Please sign in to comment.