void showLocator(DtMmdbInfoRequest* req) { DtMmdbHandle* id = 0; const char* str = 0; if ( req == 0 ) return ; str = DtMmdbLocatorGetSectionLoc(req); if ( str ) fprintf(stderr, " LOC: sectionLoc=%s\n", str); id = DtMmdbLocatorGetSectionObjectId(req); if ( id ) fprintf(stderr, " LOC: sectionId=%s\n", DtMmdbHandleToString(id)); DtMmdbFreeHandle(id); }
void showBook(DtMmdbInfoRequest* req) { const char* str = 0; int size = 0; DtMmdbHandle* id = 0; unsigned int l; int x ; DtMmdbHandle** ids; if ( req == 0 ) return ; str = DtMmdbBookGetShortTitle(req, &l); if ( str ) fprintf(stderr, " bookInfo: shortTitle=%s\n", str); str = DtMmdbBookGetLongTitle(req, &l); if ( str ) fprintf(stderr, " bookInfo: longTitle=%s\n", str); id = DtMmdbBookGetTocObjectId(req); if ( id ) fprintf(stderr, " bookInfo: TOC section id=%s\n", DtMmdbHandleToString(id)); DtMmdbFreeHandle(id); x = DtMmdbBookGetSeqNum(req); fprintf(stderr, " bookInfo: seqnum =%d\n", x); str =DtMmdbBookGetSeqLIcense(req, &l); if ( str ) fprintf(stderr, " bookInfo: license term=%s\n", str); ids = DtMmdbBookGetTabList(req, &l); if (ids) { for ( x=0; x<l; x++ ) fprintf(stderr, " bookInfo: tab section id=%s\n", DtMmdbHandleToString(ids[x])); } DtMmdbFreeHandleList(ids); }