|
|
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: 3446 (0xd76)
Types: TextFile
Names: »dsres_prn.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/dsap/x500as/dsres_prn.c«
/* dsres_prn.c - ds result printer */
#ifndef lint
static char *rcsid = "$Header: /f/osi/dsap/x500as/RCS/dsres_prn.c,v 7.0 89/11/23 21:50:39 mrose Rel $";
#endif
/*
* $Header: /f/osi/dsap/x500as/RCS/dsres_prn.c,v 7.0 89/11/23 21:50:39 mrose Rel $
*
*
* $Log: dsres_prn.c,v $
* Revision 7.0 89/11/23 21:50:39 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"
#include "quipu/dsargument.h"
extern LLog * log_dsap;
int print_OPResult(ctx, pe, type)
int ctx;
PE pe;
int type;
{
int success;
if(ctx == CN_CTX_X500_DAP)
{
success = print_DAPResult(pe, type);
}
else
{
success = print_DSPResult(pe, type);
}
return(success);
}
int print_DAPResult(pe,type)
PE pe;
int type;
{
int success;
switch(type)
{
case OP_READ :
success = print_DAS_ReadResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_COMPARE :
success = print_DAS_CompareResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_ABANDON :
success = print_DAS_AbandonResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_LIST :
success = print_DAS_ListResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_SEARCH :
success = print_DAS_SearchResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_ADDENTRY :
success = print_DAS_AddEntryResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_REMOVEENTRY :
success = print_DAS_RemoveEntryResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_MODIFYENTRY :
success = print_DAS_ModifyEntryResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_MODIFYRDN :
success = print_DAS_ModifyRDNResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
#ifdef REMOVE_FOR_6_0
case OP_GETEDB :
success = print_Quipu_GetEntryDataBlockResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
#endif
default :
success = NOTOK;
LLOG(log_dsap, LLOG_EXCEPTIONS, ("print_DSPRes unknown op %d", type));
break;
}
return(success);
}
int print_DSPResult(pe,type)
PE pe;
int type;
{
int success;
switch(type)
{
case OP_READ :
success = print_DO_ChainedReadResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_COMPARE :
success = print_DO_ChainedCompareResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_ABANDON :
success = print_DAS_AbandonResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_LIST :
success = print_DO_ChainedListResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_SEARCH :
success = print_DO_ChainedSearchResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_ADDENTRY :
success = print_DO_ChainedAddEntryResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_REMOVEENTRY :
success = print_DO_ChainedRemoveEntryResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_MODIFYENTRY :
success = print_DO_ChainedModifyEntryResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
case OP_MODIFYRDN :
success = print_DO_ChainedModifyRDNResult(pe,1,NULLIP,NULLVP,NULLCP);
break;
default :
success = NOTOK;
LLOG(log_dsap, LLOG_EXCEPTIONS, ("print_DSPRes unknown op %d", type));
break;
}
return(success);
}