|
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: 2154 (0x86a) Types: TextFile Names: »dserr_dec.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.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 7.0 89/11/23 21:50:34 mrose Rel $"; #endif /* * $Header: /f/osi/dsap/x500as/RCS/dserr_dec.c,v 7.0 89/11/23 21:50:34 mrose Rel $ * * * $Log: dserr_dec.c,v $ * Revision 7.0 89/11/23 21:50:34 mrose * Release 6.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 = ((pe == NULLPE) ? OK : NOTOK); 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); }