/* $XConsortium: c_api_book_test.C /main/5 1996/08/21 15:52:51 drk $ */ #include "oliasdb/DtMmdb.h" #include extern "C" 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