|
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: 3398 (0xd46) Types: TextFile Names: »dsres_prn.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.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 6.0 89/03/18 23:29:49 mrose Rel $"; #endif /* * $Header: /f/osi/dsap/x500as/RCS/dsres_prn.c,v 6.0 89/03/18 23:29:49 mrose Rel $ * * * $Log: dsres_prn.c,v $ * Revision 6.0 89/03/18 23:29:49 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" #include "quipu/dsargument.h" extern LLog * log_dsap; int print_OPResult(dsp, pe, type) int dsp; PE pe; int type; { int success; if(dsp) { success = print_DSPResult(pe, type); } else { success = print_DAPResult(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; case OP_GETEDB : success = print_Quipu_GetEntryDataBlockResult(pe,1,NULLIP,NULLVP,NULLCP); break; 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); }