|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 1837 (0x72d)
Types: TextFile
Names: »ds_compare.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/dsap/net/ds_compare.c«
/* ds_compare.c - */
#ifndef lint
static char *rcsid = "$Header: /f/osi/dsap/net/RCS/ds_compare.c,v 6.0 89/03/18 23:28:19 mrose Rel $";
#endif
/*
* $Header: /f/osi/dsap/net/RCS/ds_compare.c,v 6.0 89/03/18 23:28:19 mrose Rel $
*
*
* $Log: ds_compare.c,v $
* Revision 6.0 89/03/18 23:28:19 mrose
* Release 5.0
*
*/
/*
* NOTICE
*
* 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
* this agreement.
*
*/
/* LINTLIBRARY */
#include "rosap.h"
#include "quipu/util.h"
#include "quipu/connection.h"
dap_compare (ad, id, arg, error, result)
int ad;
int id;
struct ds_compare_arg *arg;
struct ds_compare_result *result;
struct DSError *error;
{
PE rda_pe;
PE resp_pe;
int resp_type;
int inv_ret;
if(encode_DAS_CompareArgument(&rda_pe,1,NULLIP,NULLVP,arg) != OK)
{
error->dse_type = DSE_LOCALERROR;
return(DS_ERROR_LOCAL);
}
switch(inv_ret = dap_invoke(ad, id, OP_COMPARE, rda_pe, &resp_type, &resp_pe))
{
case DS_OK:
if(decode_DAS_CompareResult(resp_pe,1,NULLIP,NULLCP,result) == OK) {
pe_free (resp_pe);
error->dse_type = DSE_NOERROR;
return(DS_OK);
} else {
if(resp_pe != NULLPE)
pe_free (resp_pe);
error->dse_type = DSE_REMOTEERROR;
return(DS_ERROR_PROVIDER);
}
case DS_ERROR_REMOTE:
if(decode_OPError(resp_pe, resp_type, error) == OK)
{
pe_free(resp_pe);
return(DS_ERROR_REMOTE);
}
else
{
if(resp_pe != NULLPE)
pe_free (resp_pe);
error->dse_type = DSE_REMOTEERROR;
return(DS_ERROR_PROVIDER);
}
default:
error->dse_type = DSE_REMOTEERROR;
return(inv_ret);
}
}