From f7265404764a6f94893ee41e2a52d26cde117129 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Mon, 4 Mar 1996 14:11:36 +0000 Subject: [PATCH] Added dbDumpPath --- src/dbStatic/dbStaticLib.c | 20 ++++++++++++++++++++ src/dbStatic/dbStaticLib.h | 1 + 2 files changed, 21 insertions(+) diff --git a/src/dbStatic/dbStaticLib.c b/src/dbStatic/dbStaticLib.c index b2d83a597..2eac7507b 100644 --- a/src/dbStatic/dbStaticLib.c +++ b/src/dbStatic/dbStaticLib.c @@ -2629,6 +2629,26 @@ long dbGetPvlink(DBENTRY *pdbentry,int *pp,int *ms,char *pvname) } } +void dbDumpPath(DBBASE *pdbbase) +{ + ELLLIST *ppathList; + dbPathNode *pdbPathNode; + + if(!pdbbase) return; + ppathList = (ELLLIST *)pdbbase->pathPvt; + if(!ppathList || !(pdbPathNode = (dbPathNode *)ellFirst(ppathList))) { + printf("no path defined\n"); + return; + } + while(pdbPathNode) { + printf("%s",pdbPathNode->directory); + pdbPathNode = (dbPathNode *)ellNext(&pdbPathNode->node); + if(pdbPathNode) printf(":"); + } + printf("\n"); + return; +} + void dbDumpRecord(dbBase *pdbbase,char *precdesname,int level) { if(!pdbbase) { diff --git a/src/dbStatic/dbStaticLib.h b/src/dbStatic/dbStaticLib.h index d1f675a34..084e20411 100644 --- a/src/dbStatic/dbStaticLib.h +++ b/src/dbStatic/dbStaticLib.h @@ -164,6 +164,7 @@ long dbPutPvlink(DBENTRY *pdbentry,int pp,int ms,char *pvname); long dbGetPvlink(DBENTRY *pdbentry,int *pp,int *ms,char *pvname); /*dump routines*/ +void dbDumpPath(DBBASE *pdbbase); void dbDumpRecord(DBBASE *pdbbase,char *precdesname,int level); void dbDumpMenu(DBBASE *pdbbase,char *menuName); void dbDumpRecDes(DBBASE *pdbbase,char *recdesName);