Logo Search packages:      
Sourcecode: vcdimager version File versions

uint16_t vcdinfo_get_default_offset ( const vcdinfo_obj_t *  obj,
lid_t  lid 
)

Get default LID offset.

Return the LID offset associated with a the "default" entry of the passed-in LID parameter. Note "default" entries are associated with PSDs that are (extended) selection lists.

Returns:
VCDINFO_INVALID_OFFSET is returned on error, or if the LID is not a selection list or no "default" entry. Otherwise the LID offset is returned.

Definition at line 487 of file info.c.

References vcdinfo_get_default_offset(), VCDINFO_INVALID_OFFSET, and vcdinfo_lid_get_pxd().

Referenced by vcdinfo_get_default_offset(), and vcdinfo_get_multi_default_offset().

{
  if (NULL != obj) {
    
    PsdListDescriptor_t pxd;

    vcdinfo_lid_get_pxd(obj, &pxd, lid);
    
    switch (pxd.descriptor_type) {
    case PSD_TYPE_EXT_SELECTION_LIST:
    case PSD_TYPE_SELECTION_LIST:
      return vcdinf_psd_get_default_offset(pxd.psd);
      break;
    case PSD_TYPE_PLAY_LIST:
    case PSD_TYPE_END_LIST:
    case PSD_TYPE_COMMAND_LIST:
      break;
    }
  }
  return VCDINFO_INVALID_OFFSET;
}


Generated by  Doxygen 1.6.0   Back to index