static char *rcsid
= "$Header: /f/osi/dsap/net/RCS/dapread.c,v 7.1 91/02/22 09:21:04 mrose Interim $";
* $Header: /f/osi/dsap/net/RCS/dapread.c,v 7.1 91/02/22 09:21:04 mrose Interim $
* Revision 7.1 91/02/22 09:21:04 mrose
* Revision 7.0 90/07/26 14:45:23 mrose
* *** empty log message ***
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
#include "../x500as/DAS-types.h"
dap_read (ad
, id
, arg
, error
, result
)
struct ds_read_result
*result
;
struct DAPindication di_s
;
struct DAPindication
* di
= &(di_s
);
DLOG(log_dsap
, LLOG_TRACE
, ("dap_read()"));
(void) DapRead (ad
, (*id
), arg
, di
, ROS_INTR
);
error
->dse_type
= DSE_NOERROR
;
struct DAPresult
* dr
= &(di
->di_result
);
(*result
) = dr
->dr_res
.res_rd
; /* struct copy */
dr
->dr_res
.result_type
= -1; /* Prevent freeing */
struct DAPerror
* de
= &(di
->di_error
);
(*error
) = de
->de_err
; /* struct copy */
return (DS_ERROR_REMOTE
);
error
->dse_type
= DSE_REMOTEERROR
;
return (DS_ERROR_PROVIDER
);
error
->dse_type
= DSE_REMOTEERROR
;
return (DS_ERROR_CONNECT
);
error
->dse_type
= DSE_REMOTEERROR
;
return (DS_ERROR_PROVIDER
);
int DapRead (ad
, id
, arg
, di
, asyn
)
struct ds_read_arg
* arg
;
struct DAPindication
* di
;
if(encode_DAS_ReadArgument(&arg_pe
,1,0,NULLCP
,arg
) != OK
)
return(dapreject (di
, DP_INVOKE
, id
, NULLCP
, "Read argument encoding failed"));
return (DapInvokeReqAux (ad
, id
, OP_READ
, arg_pe
, di
, asyn
));