Commit 97fe482b authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

Use a standard decode function name in dr_a0

(modified by Jean-Paul Saman <jpsaman@videolan.org>)
Added wrapper function to map dvbpsi_ExtendedChannelNameDr onto dvbpsi_DecodeExtendedChannelNameDr and update documentation.

(cherry picked from commit 7841440f06d01e2857fac3db1be07909446bcad4)
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 57ec7eee
...@@ -40,9 +40,17 @@ Decode Extended Channel Name Descriptor. ...@@ -40,9 +40,17 @@ Decode Extended Channel Name Descriptor.
#include "dr_a0.h" #include "dr_a0.h"
/***************************************************************************** /*****************************************************************************
* dvbpsi_ExtendedChannelNameDr * dvbpsi_ExtendedChannelNameDr - deprecated
*****************************************************************************/ *****************************************************************************/
dvbpsi_extended_channel_name_dr_t *dvbpsi_ExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor) 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; dvbpsi_extended_channel_name_dr_t *p_decoded;
......
...@@ -55,11 +55,11 @@ typedef struct dvbpsi_extended_channel_name_dr_s ...@@ -55,11 +55,11 @@ typedef struct dvbpsi_extended_channel_name_dr_s
}dvbpsi_extended_channel_name_dr_t; }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) * \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. * \param p_descriptor Raw descriptor to decode.
* \return NULL if the descriptor could not be decoded or a pointer to a * \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 structure.
...@@ -67,6 +67,18 @@ typedef struct dvbpsi_extended_channel_name_dr_s ...@@ -67,6 +67,18 @@ typedef struct dvbpsi_extended_channel_name_dr_s
__attribute__((deprecated)) __attribute__((deprecated))
dvbpsi_extended_channel_name_dr_t *dvbpsi_ExtendedChannelNameDr(dvbpsi_descriptor_t *p_descriptor); 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 #ifdef __cplusplus
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment