aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-11 18:16:31 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-11 18:16:31 -0300
commit6917a4328627551257d82e460c6e4dd3b8771bec (patch)
tree4d1ca5c0f6fc9d74c7c9a6c4b427993eed3b657d
parent47679463ee513dfcb8b59ccd2990d801608eb9c9 (diff)
libdvbv5: don't use DVB_DESC_HEADER() macro
This macro was a very bad idea, as it causes doxygen to produce wrong data. Get rid of it. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--doxygen_libdvbv5.cfg3
-rw-r--r--lib/include/libdvbv5/desc_atsc_service_location.h4
-rw-r--r--lib/include/libdvbv5/desc_ca.h4
-rw-r--r--lib/include/libdvbv5/desc_ca_identifier.h4
-rw-r--r--lib/include/libdvbv5/desc_cable_delivery.h4
-rw-r--r--lib/include/libdvbv5/desc_event_extended.h4
-rw-r--r--lib/include/libdvbv5/desc_event_short.h4
-rw-r--r--lib/include/libdvbv5/desc_extension.h4
-rw-r--r--lib/include/libdvbv5/desc_frequency_list.h4
-rw-r--r--lib/include/libdvbv5/desc_hierarchy.h4
-rw-r--r--lib/include/libdvbv5/desc_isdbt_delivery.h4
-rw-r--r--lib/include/libdvbv5/desc_language.h4
-rw-r--r--lib/include/libdvbv5/desc_logical_channel.h4
-rw-r--r--lib/include/libdvbv5/desc_network_name.h4
-rw-r--r--lib/include/libdvbv5/desc_partial_reception.h4
-rw-r--r--lib/include/libdvbv5/desc_sat.h4
-rw-r--r--lib/include/libdvbv5/desc_service.h4
-rw-r--r--lib/include/libdvbv5/desc_service_list.h4
-rw-r--r--lib/include/libdvbv5/desc_service_location.h4
-rw-r--r--lib/include/libdvbv5/desc_terrestrial_delivery.h4
-rw-r--r--lib/include/libdvbv5/desc_ts_info.h4
-rw-r--r--lib/include/libdvbv5/descriptors.h5
22 files changed, 65 insertions, 23 deletions
diff --git a/doxygen_libdvbv5.cfg b/doxygen_libdvbv5.cfg
index b9481826..c3df20c6 100644
--- a/doxygen_libdvbv5.cfg
+++ b/doxygen_libdvbv5.cfg
@@ -1954,8 +1954,7 @@ INCLUDE_FILE_PATTERNS =
PREDEFINED = _DOXYGEN \
__attribute__(x)= \
- __cdecl= \
- DVB_DESC_HEADER()=
+ __cdecl=
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
diff --git a/lib/include/libdvbv5/desc_atsc_service_location.h b/lib/include/libdvbv5/desc_atsc_service_location.h
index 310efa39..14497f5d 100644
--- a/lib/include/libdvbv5/desc_atsc_service_location.h
+++ b/lib/include/libdvbv5/desc_atsc_service_location.h
@@ -36,7 +36,9 @@ struct atsc_desc_service_location_elementary {
} __attribute__((packed));
struct atsc_desc_service_location {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
struct atsc_desc_service_location_elementary *elementary;
diff --git a/lib/include/libdvbv5/desc_ca.h b/lib/include/libdvbv5/desc_ca.h
index 34723d79..21ae525b 100644
--- a/lib/include/libdvbv5/desc_ca.h
+++ b/lib/include/libdvbv5/desc_ca.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_ca {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint16_t ca_id;
union {
diff --git a/lib/include/libdvbv5/desc_ca_identifier.h b/lib/include/libdvbv5/desc_ca_identifier.h
index a4b85378..f09baff7 100644
--- a/lib/include/libdvbv5/desc_ca_identifier.h
+++ b/lib/include/libdvbv5/desc_ca_identifier.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_ca_identifier {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint8_t caid_count;
uint16_t *caids;
diff --git a/lib/include/libdvbv5/desc_cable_delivery.h b/lib/include/libdvbv5/desc_cable_delivery.h
index b6ffaea0..f327ece5 100644
--- a/lib/include/libdvbv5/desc_cable_delivery.h
+++ b/lib/include/libdvbv5/desc_cable_delivery.h
@@ -26,7 +26,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_cable_delivery {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint32_t frequency;
union {
diff --git a/lib/include/libdvbv5/desc_event_extended.h b/lib/include/libdvbv5/desc_event_extended.h
index 6e07064b..8ad1a838 100644
--- a/lib/include/libdvbv5/desc_event_extended.h
+++ b/lib/include/libdvbv5/desc_event_extended.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_event_extended {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
union {
struct {
diff --git a/lib/include/libdvbv5/desc_event_short.h b/lib/include/libdvbv5/desc_event_short.h
index eac7e967..08e5b4de 100644
--- a/lib/include/libdvbv5/desc_event_short.h
+++ b/lib/include/libdvbv5/desc_event_short.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_event_short {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
unsigned char language[4];
char *name;
diff --git a/lib/include/libdvbv5/desc_extension.h b/lib/include/libdvbv5/desc_extension.h
index dcf267a0..5326c1c6 100644
--- a/lib/include/libdvbv5/desc_extension.h
+++ b/lib/include/libdvbv5/desc_extension.h
@@ -41,7 +41,9 @@ enum extension_descriptors {
};
struct dvb_extension_descriptor {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint8_t extension_code;
diff --git a/lib/include/libdvbv5/desc_frequency_list.h b/lib/include/libdvbv5/desc_frequency_list.h
index b974fc85..47d6184d 100644
--- a/lib/include/libdvbv5/desc_frequency_list.h
+++ b/lib/include/libdvbv5/desc_frequency_list.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_frequency_list {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint8_t frequencies;
uint32_t *frequency;
diff --git a/lib/include/libdvbv5/desc_hierarchy.h b/lib/include/libdvbv5/desc_hierarchy.h
index 51075c03..ab71b425 100644
--- a/lib/include/libdvbv5/desc_hierarchy.h
+++ b/lib/include/libdvbv5/desc_hierarchy.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_hierarchy {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint8_t hierarchy_type:4;
uint8_t reserved:4;
diff --git a/lib/include/libdvbv5/desc_isdbt_delivery.h b/lib/include/libdvbv5/desc_isdbt_delivery.h
index 5d1e2b5f..5b6688ee 100644
--- a/lib/include/libdvbv5/desc_isdbt_delivery.h
+++ b/lib/include/libdvbv5/desc_isdbt_delivery.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct isdbt_desc_terrestrial_delivery_system {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint32_t *frequency;
unsigned num_freqs;
diff --git a/lib/include/libdvbv5/desc_language.h b/lib/include/libdvbv5/desc_language.h
index 62726800..b448a731 100644
--- a/lib/include/libdvbv5/desc_language.h
+++ b/lib/include/libdvbv5/desc_language.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_language {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
unsigned char language[4];
uint8_t audio_type;
diff --git a/lib/include/libdvbv5/desc_logical_channel.h b/lib/include/libdvbv5/desc_logical_channel.h
index 83d44e56..9b02dd18 100644
--- a/lib/include/libdvbv5/desc_logical_channel.h
+++ b/lib/include/libdvbv5/desc_logical_channel.h
@@ -40,7 +40,9 @@ struct dvb_desc_logical_channel_number {
} __attribute__((packed));
struct dvb_desc_logical_channel {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
struct dvb_desc_logical_channel_number *lcn;
} __attribute__((packed));
diff --git a/lib/include/libdvbv5/desc_network_name.h b/lib/include/libdvbv5/desc_network_name.h
index 7ab2296d..9cf11a06 100644
--- a/lib/include/libdvbv5/desc_network_name.h
+++ b/lib/include/libdvbv5/desc_network_name.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_network_name {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
char *network_name;
char *network_name_emph;
diff --git a/lib/include/libdvbv5/desc_partial_reception.h b/lib/include/libdvbv5/desc_partial_reception.h
index 05230e7a..7197e016 100644
--- a/lib/include/libdvbv5/desc_partial_reception.h
+++ b/lib/include/libdvbv5/desc_partial_reception.h
@@ -32,7 +32,9 @@ struct isdb_partial_reception_service_id {
} __attribute__((packed));
struct isdb_desc_partial_reception {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
struct isdb_partial_reception_service_id *partial_reception;
} __attribute__((packed));
diff --git a/lib/include/libdvbv5/desc_sat.h b/lib/include/libdvbv5/desc_sat.h
index 86d9cfb7..fb09b4da 100644
--- a/lib/include/libdvbv5/desc_sat.h
+++ b/lib/include/libdvbv5/desc_sat.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_sat {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint32_t frequency;
uint16_t orbit;
diff --git a/lib/include/libdvbv5/desc_service.h b/lib/include/libdvbv5/desc_service.h
index da4423c8..e370429a 100644
--- a/lib/include/libdvbv5/desc_service.h
+++ b/lib/include/libdvbv5/desc_service.h
@@ -25,7 +25,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_service {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint8_t service_type;
char *name;
diff --git a/lib/include/libdvbv5/desc_service_list.h b/lib/include/libdvbv5/desc_service_list.h
index e71e3211..e08ea3c6 100644
--- a/lib/include/libdvbv5/desc_service_list.h
+++ b/lib/include/libdvbv5/desc_service_list.h
@@ -30,7 +30,9 @@ struct dvb_desc_service_list_table {
} __attribute__((packed));
struct dvb_desc_service_list {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
//struct dvb_desc_service_list_table services[];
} __attribute__((packed));
diff --git a/lib/include/libdvbv5/desc_service_location.h b/lib/include/libdvbv5/desc_service_location.h
index af3379bc..0c23f677 100644
--- a/lib/include/libdvbv5/desc_service_location.h
+++ b/lib/include/libdvbv5/desc_service_location.h
@@ -36,7 +36,9 @@ struct dvb_desc_service_location_element {
} __attribute__((packed));
struct dvb_desc_service_location {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
union {
uint16_t bitfield;
diff --git a/lib/include/libdvbv5/desc_terrestrial_delivery.h b/lib/include/libdvbv5/desc_terrestrial_delivery.h
index 1c711890..cd4e52c5 100644
--- a/lib/include/libdvbv5/desc_terrestrial_delivery.h
+++ b/lib/include/libdvbv5/desc_terrestrial_delivery.h
@@ -27,7 +27,9 @@
#include <libdvbv5/descriptors.h>
struct dvb_desc_terrestrial_delivery {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint32_t centre_frequency;
uint8_t reserved_future_use1:2;
diff --git a/lib/include/libdvbv5/desc_ts_info.h b/lib/include/libdvbv5/desc_ts_info.h
index a34a7215..bbbdb644 100644
--- a/lib/include/libdvbv5/desc_ts_info.h
+++ b/lib/include/libdvbv5/desc_ts_info.h
@@ -30,7 +30,9 @@ struct dvb_desc_ts_info_transmission_type {
} __attribute__((packed));
struct dvb_desc_ts_info {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
char *ts_name, *ts_name_emph;
struct dvb_desc_ts_info_transmission_type transmission_type;
diff --git a/lib/include/libdvbv5/descriptors.h b/lib/include/libdvbv5/descriptors.h
index 78de968f..4f8b1d10 100644
--- a/lib/include/libdvbv5/descriptors.h
+++ b/lib/include/libdvbv5/descriptors.h
@@ -74,6 +74,7 @@ extern const dvb_table_init_func dvb_table_initializers[256];
b = ntohl(b); \
} while (0)
+/* Deprecated */
#define DVB_DESC_HEADER() \
uint8_t type; \
uint8_t length; \
@@ -93,7 +94,9 @@ extern const dvb_table_init_func dvb_table_initializers[256];
*/
struct dvb_desc {
- DVB_DESC_HEADER();
+ uint8_t type;
+ uint8_t length;
+ struct dvb_desc *next;
uint8_t data[];
} __attribute__((packed));

Privacy Policy