diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-11-01 15:47:59 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-11-01 15:47:59 +0100 |
commit | cfb37a7edf8caafb0f07594b080837231ba9c575 (patch) | |
tree | d92e4c39377e735feec619205d1642730ac0ff62 /libsi/descriptor.c | |
parent | 4f50c34824f0c717dd52e0ce32497b7f421c1c66 (diff) | |
download | vdr-cfb37a7edf8caafb0f07594b080837231ba9c575.tar.gz vdr-cfb37a7edf8caafb0f07594b080837231ba9c575.tar.bz2 |
Added support for "registration descriptor"
Diffstat (limited to 'libsi/descriptor.c')
-rw-r--r-- | libsi/descriptor.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libsi/descriptor.c b/libsi/descriptor.c index f3bb3442..59f636a3 100644 --- a/libsi/descriptor.c +++ b/libsi/descriptor.c @@ -6,7 +6,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: descriptor.c 1.22 2007/02/03 11:45:58 kls Exp $ + * $Id: descriptor.c 2.1 2010/11/01 15:24:31 kls Exp $ * * ***************************************************************************/ @@ -1032,4 +1032,15 @@ void MHP_ApplicationIconsDescriptor::Parse() { data.setPointerAndOffset<const descr_application_icons_descriptor_end>(s, offset); } +int RegistrationDescriptor::getFormatIdentifier() const { + return HILOHILO(s->format_identifier); +} + +void RegistrationDescriptor::Parse() { + int offset=0; + data.setPointerAndOffset<const descr_registration>(s, offset); + if (checkSize(getLength()-offset)) + privateData.assign(data.getData(offset), getLength()-offset); +} + } //end of namespace |