DtMmdbInfoRequest* newDtMmdbInfoRequestWithPrimaryOid(int bc_id, char* oid_str) { DtMmdbInfoRequest* x = (DtMmdbInfoRequest*) malloc(sizeof(DtMmdbInfoRequest)); x -> bookcase_descriptor = bc_id ; x -> primary_oid = newDtMmdbHandle(oid_t(oid_str, true, false)); return x; }
DtMmdbHandle* DtMmdbDlpGetPrevSectionId(DtMmdbInfoRequest* request) { try { dlp_smart_ptr* x = getDlpUsingProid(request); if ( x == 0 ) return 0; DtMmdbHandle *z = 0; if ( x -> prev_node_oid() == ground ) z = DtMmdbGroundId; else z = newDtMmdbHandle(x -> prev_node_oid()); delete x; return z; } catch (mmdbException &,e) { return 0; } end_try; return 0; }