aboutsummaryrefslogtreecommitdiffstats
path: root/src/descriptors/dr_a1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/descriptors/dr_a1.h')
-rw-r--r--src/descriptors/dr_a1.h43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/descriptors/dr_a1.h b/src/descriptors/dr_a1.h
index 578d63b..dd47ee6 100644
--- a/src/descriptors/dr_a1.h
+++ b/src/descriptors/dr_a1.h
@@ -25,19 +25,20 @@ Service Location Descriptor.
#define _DVBPSI_DR_A1_H_
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
-typedef struct dvbpsi_service_location_element_s
-{
- uint8_t i_stream_type;
- uint16_t i_elementary_pid;
- char i_iso_639_code[3];
+ typedef struct dvbpsi_service_location_element_s
+ {
+ uint8_t i_stream_type;
+ uint16_t i_elementary_pid;
+ char i_iso_639_code[3];
- struct dvbpsi_service_location_element_s * p_next;
+ struct dvbpsi_service_location_element_s *p_next;
-} dvbpsi_service_location_element_t;
+ } dvbpsi_service_location_element_t;
/*****************************************************************************
* dvbpsi_service_location_dr_s
@@ -53,14 +54,14 @@ typedef struct dvbpsi_service_location_element_s
* \typedef struct dvbpsi_service_location_dr_s dvbpsi_service_location_dr_t
* \brief dvbpsi_service_dr_t type definition.
*/
-typedef struct dvbpsi_service_location_dr_s
-{
- uint16_t i_pcr_pid; /*!< PCR_PID */
- uint8_t i_number_elements; /*!< number of elements used for this service */
+ typedef struct dvbpsi_service_location_dr_s
+ {
+ uint16_t i_pcr_pid; /*!< PCR_PID */
+ uint8_t i_number_elements; /*!< number of elements used for this service */
- dvbpsi_service_location_element_t * p_first_element;
+ dvbpsi_service_location_element_t *p_first_element;
-} dvbpsi_service_location_dr_t;
+ } dvbpsi_service_location_dr_t;
/*****************************************************************************
@@ -74,8 +75,8 @@ typedef struct dvbpsi_service_location_dr_s
* \return a pointer to a new "service" descriptor structure
* which contains the decoded data.
*/
-dvbpsi_service_location_dr_t* dvbpsi_DecodeServiceLocationDr(
- dvbpsi_descriptor_t * p_descriptor);
+ dvbpsi_service_location_dr_t
+ *dvbpsi_DecodeServiceLocationDr (dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
@@ -87,7 +88,8 @@ dvbpsi_service_location_dr_t* dvbpsi_DecodeServiceLocationDr(
* \brief frees service location descriptor
* \param p_descriptor pointer to the descriptor structure
*/
-void dvbpsi_FreeServiceLocationDr(dvbpsi_service_location_dr_t * p_descriptor);
+ void dvbpsi_FreeServiceLocationDr (dvbpsi_service_location_dr_t *
+ p_descriptor);
#if 0
/*****************************************************************************
* dvbpsi_GenServiceDataDr
@@ -102,9 +104,9 @@ void dvbpsi_FreeServiceLocationDr(dvbpsi_service_location_dr_t * p_descriptor);
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
-dvbpsi_descriptor_t * dvbpsi_GenServiceLocationDr(
- dvbpsi_service_dr_t * p_decoded,
- bool b_duplicate);
+ dvbpsi_descriptor_t *dvbpsi_GenServiceLocationDr (dvbpsi_service_dr_t *
+ p_decoded,
+ bool b_duplicate);
#endif
@@ -115,4 +117,3 @@ dvbpsi_descriptor_t * dvbpsi_GenServiceLocationDr(
#else
#error "Multiple inclusions of dr_a1.h"
#endif
-

Privacy Policy