Logo Search packages:      
Sourcecode: vcdimager version File versions

bool vcdinfo_visit_lot ( vcdinfo_obj_t *  obj,
bool  extended 
)

Calls recursive routine to populate obj->offset_list or obj->offset_x_list by going through LOT.

Returns false if there was some error.

Calls recursive routine to populate obj->offset_list or obj->offset_x_list by going through LOT.

Returns false if there was some error.

Definition at line 1682 of file info.c.

References vcdinfo_get_num_LIDs(), vcdinfo_get_psd_size(), and vcdinfo_visit_lot().

Referenced by vcdinfo_visit_lot().

{
  struct _vcdinf_pbc_ctx pbc_ctx;
  bool ret;

  pbc_ctx.psd_size      = vcdinfo_get_psd_size (obj);
  pbc_ctx.psd_x_size    = obj->psd_x_size;
  pbc_ctx.offset_mult   = 8;
  pbc_ctx.maximum_lid   = vcdinfo_get_num_LIDs(obj);
  pbc_ctx.offset_x_list = NULL;
  pbc_ctx.offset_list   = NULL;
  pbc_ctx.psd           = obj->psd;
  pbc_ctx.psd_x         = obj->psd_x;
  pbc_ctx.lot           = obj->lot;
  pbc_ctx.lot_x         = obj->lot_x;
  pbc_ctx.extended      = extended;

  ret = vcdinf_visit_lot(&pbc_ctx);
  if (NULL != obj->offset_x_list) 
    _cdio_list_free(obj->offset_x_list, true);
  obj->offset_x_list = pbc_ctx.offset_x_list;
  if (NULL != obj->offset_list) 
    _cdio_list_free(obj->offset_list, true);
  obj->offset_list   = pbc_ctx.offset_list;
  return ret;
}


Generated by  Doxygen 1.6.0   Back to index