Use a standard decode function name in dr_a0
[email protected] (Daniel Kamil Kozar) Mon, 24 Aug 2015 12:54:45 +0200 (CEST)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Daniel Kamil Kozar <[email protected]> | Sun Jul 26 04:09:40 2015 +0200| [97fe482be4bc4ac38a5cda5e9360ff833a710e1d] | committer: Jean-Paul Saman Use a standard decode function name in dr_a0 (modified by Jean-Paul Saman <[email protected]>) Added wrapper function to map dvbpsi_ExtendedChannelNameDr onto dvbpsi_DecodeExtendedChannelNameDr and update documentation. (cherry picked from commit 7841440f06d01e2857fac3db1be07909446bcad4) Signed-off-by: Jean-Paul Saman <[email protected]> > http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=97fe482be4bc4ac38a5cda5e9360ff833a710e1d --- src/descriptors/dr_a0.c | 10 +++++++++- src/descriptors/dr_a0.h | 16 ++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/descriptors/dr_a0.c b/src/descriptors/dr_a0.c index 8004aea..c2bbbce 100644 --- a/src/descriptors/dr_a0.c +++ b/src/descriptors/dr_a0.c @@ -40,10 +40,18 @@ Decode Extended Channel Name Descriptor. #include "dr_a0.h" /***************************************************************************** - * dvbpsi_ExtendedChannelNameDr + * dvbpsi_ExtendedChannelNameDr - deprecated *****************************************************************************/ dvbpsi_extended_channel_name_dr_t *dvbpsi_ExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor) { + return dvbpsi_DecodeExtendedChannelNameDr(p_descriptor); +} + +/***************************************************************************** + * dvbpsi_DecodeExtendedChannelNameDr + *****************************************************************************/ +dvbpsi_extended_channel_name_dr_t *dvbpsi_DecodeExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor) +{ dvbpsi_extended_channel_name_dr_t *p_decoded; /* Check the tag */ diff --git a/src/descriptors/dr_a0.h b/src/descriptors/dr_a0.h index dbdfaad..c009e6c 100644 --- a/src/descriptors/dr_a0.h +++ b/src/descriptors/dr_a0.h @@ -55,11 +55,11 @@ typedef struct dvbpsi_extended_channel_name_dr_s }dvbpsi_extended_channel_name_dr_t; /***************************************************************************** - * dvbpsi_ExtendedChannelNameDr + * dvbpsi_ExtendedChannelNameDr - deprecated *****************************************************************************/ /*! * \fn dvbpsi_extended_channel_name_dr_t dvbpsi_ExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor) - * \brief Decode a Extended Channel Name descriptor (tag 0xA0) + * \brief Function is deprecated use dvbpsi_DecodeExtendedChannelNameDr instead. * \param p_descriptor Raw descriptor to decode. * \return NULL if the descriptor could not be decoded or a pointer to a * dvbpsi_extended_channel_name_dr_t structure. @@ -67,6 +67,18 @@ typedef struct dvbpsi_extended_channel_name_dr_s __attribute__((deprecated)) dvbpsi_extended_channel_name_dr_t *dvbpsi_ExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor); +/***************************************************************************** + * dvbpsi_DecodeExtendedChannelNameDr + *****************************************************************************/ +/*! + * \fn dvbpsi_extended_channel_name_dr_t dvbpsi_DecodeExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor) + * \brief Decode a Extended Channel Name descriptor (tag 0xA0) + * \param p_descriptor Raw descriptor to decode. + * \return NULL if the descriptor could not be decoded or a pointer to a + * dvbpsi_extended_channel_name_dr_t structure. + */ +dvbpsi_extended_channel_name_dr_t *dvbpsi_DecodeExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor); + #ifdef __cplusplus } #endif _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel