DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T d

⟦e53621285⟧ TextFile

    Length: 2268 (0x8dc)
    Types: TextFile
    Names: »dserr_enc.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/dsap/x500as/dserr_enc.c« 

TextFile

/* dserr_enc.c - ds error encoder */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/dsap/x500as/RCS/dserr_enc.c,v 6.0 89/03/18 23:29:45 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/dsap/x500as/RCS/dserr_enc.c,v 6.0 89/03/18 23:29:45 mrose Rel $
 *
 *
 * $Log:	dserr_enc.c,v $
 * Revision 6.0  89/03/18  23:29:45  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             encode_OPError(pep, typep, err)
PE		*pep;
int		*typep;
struct DSError  *err;
{
    int		success;

	switch(*typep = err->dse_type)
	{
	case    DSE_NOERROR :
		LLOG(log_dsap, LLOG_EXCEPTIONS, ("encode_error called with no error"));
		(*pep) = NULLPE;
		success = NOTOK;
		break;
	case    DSE_ABANDON_FAILED :
		success = encode_DAS_AbandonFailedParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_abandon_fail));
		break;
	case    DSE_ATTRIBUTEERROR :
		success = encode_DAS_AttributeErrorParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_attribute));
		break;
	case    DSE_NAMEERROR :
		success = encode_DAS_NameErrorParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_name));
		break;
	case    DSE_REFERRAL :
		success = encode_DAS_ReferralParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_referral));
		break;
	case    DSE_SECURITYERROR :
		success = encode_DAS_SecurityErrorParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_security));
		break;
	case    DSE_SERVICEERROR :
		success = encode_DAS_ServiceErrorParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_service));
		break;
	case    DSE_UPDATEERROR :
		success = encode_DAS_UpdateErrorParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_update));
		break;
	case    DSE_ABANDONED :
		success = encode_DAS_AbandonedParm(pep,0,0,NULLCP,NULLCP);
		break;
	case    DSE_DSAREFERRAL :
		success = encode_DO_DSAReferralParm(pep,0,0,NULLCP,&(err->dse_un.dse_un_referral));
		break;
	default :
		(*pep) = NULLPE;
		success = NOTOK;
		LLOG(log_dsap, LLOG_EXCEPTIONS, ("encode_OPError unknown error %d", err->dse_type));
		break;
	}

	return(success);
}