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);