|
|
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: 2176 (0x880)
Types: TextFile
Names: »dserr_dec.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/dsap/x500as/dserr_dec.c«
/* dserr_dec.c - ds error decoder */
#ifndef lint
static char *rcsid = "$Header: /f/osi/dsap/x500as/RCS/dserr_dec.c,v 6.0 89/03/18 23:29:44 mrose Rel $";
#endif
/*
* $Header: /f/osi/dsap/x500as/RCS/dserr_dec.c,v 6.0 89/03/18 23:29:44 mrose Rel $
*
*
* $Log: dserr_dec.c,v $
* Revision 6.0 89/03/18 23:29:44 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 "psap.h"
#include "quipu/util.h"
#include "quipu/common.h"
extern LLog * log_dsap;
int decode_OPError(pe, type, err)
PE pe;
int type;
struct DSError *err;
{
int success;
switch(err->dse_type = type)
{
case DSE_NOERROR :
success = NOTOK;
break;
case DSE_ABANDON_FAILED :
success = decode_DAS_AbandonFailedParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_abandon_fail));
break;
case DSE_ATTRIBUTEERROR :
success = decode_DAS_AttributeErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_attribute));
break;
case DSE_NAMEERROR :
success = decode_DAS_NameErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_name));
break;
case DSE_REFERRAL :
success = decode_DAS_ReferralParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_referral));
break;
case DSE_SECURITYERROR :
success = decode_DAS_SecurityErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_security));
break;
case DSE_SERVICEERROR :
success = decode_DAS_ServiceErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_service));
break;
case DSE_UPDATEERROR :
success = decode_DAS_UpdateErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_update));
break;
case DSE_ABANDONED :
success = decode_DAS_AbandonedParm(pe,1,NULLIP,NULLVP,NULLCP);
break;
case DSE_DSAREFERRAL :
success = decode_DO_DSAReferralParm(pe, 1, NULLIP, NULLVP, &(err->dse_un.dse_un_referral));
break;
default :
success = NOTOK;
LLOG(log_dsap, LLOG_EXCEPTIONS, ("decode_OPError unknown Error %d", type));
break;
}
return(success);
}