libdvbv5: shared lib and installing headers
PATCH v2 1/1 libdvbv5: shared lib and installing headers
- move headers to subdirectory for correct install location
- fix includes in dvb table and descriptor parsers
- fix compile warnings
Signed-off-by André Roth <[email protected]>
---
README | 6 +-
README.libv4l | 12 ++
lib/include/{descriptors => libdvbv5}/atsc_eit.h | 4 +-
.../{descriptors => libdvbv5}/atsc_header.h | 0
.../desc_atsc_service_location.h | 0
.../desc_cable_delivery.h | 0
.../desc_event_extended.h | 0
.../{descriptors => libdvbv5}/desc_event_short.h | 0
.../{descriptors => libdvbv5}/desc_extension.h | 0
.../desc_frequency_list.h | 0
.../{descriptors => libdvbv5}/desc_hierarchy.h | 0
.../desc_isdbt_delivery.h | 0
.../{descriptors => libdvbv5}/desc_language.h | 0
.../desc_logical_channel.h | 0
.../{descriptors => libdvbv5}/desc_network_name.h | 0
.../desc_partial_reception.h | 0
lib/include/{descriptors => libdvbv5}/desc_sat.h | 0
.../{descriptors => libdvbv5}/desc_service.h | 0
.../{descriptors => libdvbv5}/desc_service_list.h | 0
.../desc_service_location.h | 0
.../{descriptors => libdvbv5}/desc_t2_delivery.h | 0
.../desc_terrestrial_delivery.h | 0
.../{descriptors => libdvbv5}/desc_ts_info.h | 0
lib/include/{ => libdvbv5}/descriptors.h | 0
lib/include/{ => libdvbv5}/dvb-demux.h | 0
lib/include/{ => libdvbv5}/dvb-fe.h | 0
lib/include/{ => libdvbv5}/dvb-file.h | 0
lib/include/{ => libdvbv5}/dvb-frontend.h | 0
lib/include/{ => libdvbv5}/dvb-log.h | 0
lib/include/{ => libdvbv5}/dvb-sat.h | 0
lib/include/{ => libdvbv5}/dvb-scan.h | 4 +-
lib/include/{ => libdvbv5}/dvb-v5-std.h | 0
lib/include/{descriptors => libdvbv5}/eit.h | 4 +-
lib/include/{descriptors => libdvbv5}/header.h | 0
lib/include/{descriptors => libdvbv5}/mgt.h | 4 +-
lib/include/{descriptors => libdvbv5}/mpeg_es.h | 0
lib/include/{descriptors => libdvbv5}/mpeg_pes.h | 0
lib/include/{descriptors => libdvbv5}/mpeg_ts.h | 0
lib/include/{descriptors => libdvbv5}/nit.h | 4 +-
lib/include/{descriptors => libdvbv5}/pat.h | 2 +-
lib/include/{descriptors => libdvbv5}/pmt.h | 2 +-
lib/include/{descriptors => libdvbv5}/sdt.h | 4 +-
lib/include/{descriptors => libdvbv5}/vct.h | 4 +-
lib/libdvbv5/Makefile.am | 138 ++++++++++++++-------
lib/libdvbv5/descriptors.c | 62 ++++-----
lib/libdvbv5/descriptors/atsc_eit.c | 4 +-
lib/libdvbv5/descriptors/atsc_header.c | 6 +-
.../descriptors/desc_atsc_service_location.c | 8 +-
lib/libdvbv5/descriptors/desc_cable_delivery.c | 6 +-
lib/libdvbv5/descriptors/desc_event_extended.c | 8 +-
lib/libdvbv5/descriptors/desc_event_short.c | 8 +-
lib/libdvbv5/descriptors/desc_extension.c | 8 +-
lib/libdvbv5/descriptors/desc_frequency_list.c | 6 +-
lib/libdvbv5/descriptors/desc_hierarchy.c | 6 +-
lib/libdvbv5/descriptors/desc_isdbt_delivery.c | 8 +-
lib/libdvbv5/descriptors/desc_language.c | 6 +-
lib/libdvbv5/descriptors/desc_logical_channel.c | 8 +-
lib/libdvbv5/descriptors/desc_network_name.c | 6 +-
lib/libdvbv5/descriptors/desc_partial_reception.c | 8 +-
lib/libdvbv5/descriptors/desc_sat.c | 6 +-
lib/libdvbv5/descriptors/desc_service.c | 8 +-
lib/libdvbv5/descriptors/desc_service_list.c | 6 +-
lib/libdvbv5/descriptors/desc_service_location.c | 11 +-
lib/libdvbv5/descriptors/desc_t2_delivery.c | 8 +-
.../descriptors/desc_terrestrial_delivery.c | 6 +-
lib/libdvbv5/descriptors/desc_ts_info.c | 8 +-
lib/libdvbv5/descriptors/eit.c | 4 +-
lib/libdvbv5/descriptors/header.c | 6 +-
lib/libdvbv5/descriptors/mgt.c | 4 +-
lib/libdvbv5/descriptors/mpeg_es.c | 6 +-
lib/libdvbv5/descriptors/mpeg_pes.c | 6 +-
lib/libdvbv5/descriptors/mpeg_ts.c | 6 +-
lib/libdvbv5/descriptors/nit.c | 4 +-
lib/libdvbv5/descriptors/pat.c | 6 +-
lib/libdvbv5/descriptors/pmt.c | 6 +-
lib/libdvbv5/descriptors/sdt.c | 4 +-
lib/libdvbv5/descriptors/vct.c | 6 +-
lib/libdvbv5/dvb-demux.c | 2 +-
lib/libdvbv5/dvb-fe.c | 4 +-
lib/libdvbv5/dvb-file.c | 48 +++----
lib/libdvbv5/dvb-legacy-channel-format.c | 4 +-
lib/libdvbv5/dvb-log.c | 2 +-
lib/libdvbv5/dvb-sat.c | 4 +-
lib/libdvbv5/dvb-scan.c | 44 +++----
lib/libdvbv5/dvb-v5-std.c | 2 +-
lib/libdvbv5/dvb-v5.h | 2 +-
lib/libdvbv5/dvb-zap-format.c | 4 +-
lib/libdvbv5/gen_dvb_structs.pl | 4 +-
lib/libdvbv5/parse_string.c | 4 +-
utils/dvb/dvb-fe-tool.c | 2 +-
utils/dvb/dvb-format-convert.c | 6 +-
utils/dvb/dvbv5-scan.c | 8 +-
utils/dvb/dvbv5-zap.c | 8 +-
93 files changed, 332 insertions(+), 273 deletions(-)
rename lib/include/{descriptors => libdvbv5}/atsc_eit.h (97%)
rename lib/include/{descriptors => libdvbv5}/atsc_header.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_atsc_service_location.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_cable_delivery.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_event_extended.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_event_short.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_extension.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_frequency_list.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_hierarchy.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_isdbt_delivery.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_language.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_logical_channel.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_network_name.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_partial_reception.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_sat.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_service.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_service_list.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_service_location.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_t2_delivery.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_terrestrial_delivery.h (100%)
rename lib/include/{descriptors => libdvbv5}/desc_ts_info.h (100%)
rename lib/include/{ => libdvbv5}/descriptors.h (100%)
rename lib/include/{ => libdvbv5}/dvb-demux.h (100%)
rename lib/include/{ => libdvbv5}/dvb-fe.h (100%)
rename lib/include/{ => libdvbv5}/dvb-file.h (100%)
rename lib/include/{ => libdvbv5}/dvb-frontend.h (100%)
rename lib/include/{ => libdvbv5}/dvb-log.h (100%)
rename lib/include/{ => libdvbv5}/dvb-sat.h (100%)
rename lib/include/{ => libdvbv5}/dvb-scan.h (98%)
rename lib/include/{ => libdvbv5}/dvb-v5-std.h (100%)
rename lib/include/{descriptors => libdvbv5}/eit.h (97%)
rename lib/include/{descriptors => libdvbv5}/header.h (100%)
rename lib/include/{descriptors => libdvbv5}/mgt.h (96%)
rename lib/include/{descriptors => libdvbv5}/mpeg_es.h (100%)
rename lib/include/{descriptors => libdvbv5}/mpeg_pes.h (100%)
rename lib/include/{descriptors => libdvbv5}/mpeg_ts.h (100%)
rename lib/include/{descriptors => libdvbv5}/nit.h (97%)
rename lib/include/{descriptors => libdvbv5}/pat.h (98%)
rename lib/include/{descriptors => libdvbv5}/pmt.h (99%)
rename lib/include/{descriptors => libdvbv5}/sdt.h (97%)
rename lib/include/{descriptors => libdvbv5}/vct.h (97%)README +3 -3
@@ -3,11 +3,11 @@ v4l-utils Linux V4L2 and DVB API utilities and v4l libraries (libv4l). You can always find the latest development v4l-utils in the git repo: -http://git.linuxtv.org/v4l-utils.git +http://git.linuxtv.org/v4l-utils.git -v4l libraries (libv4l) ----------------------- +v4l libraries (libv4l, libdvbv5) +-------------------------------- See README.libv4l for more information on libv4l, libv4l is released under the GNU Lesser General Public License.
README.libv4l +12 -0
@@ -59,6 +59,18 @@ hardware can _really_ do it should use ENUM_FMT, not randomly try a bunch of S_FMT's). For more details on the v4l2_ functions see libv4l2.h . +libdvbv5 +-------- + +This library provides the DVBv5 API to userspace programs. It can be used to +open DVB adapters, tune transponders and read PES and other data streams. +There are as well several parsers for DVB, ATSC, ISBT formats. + +The API is currently EXPERIMENTAL and likely to change. +Run configure with --enable-libdvbv5 in order to build a shared lib and +install the header files. + + wrappers --------
lib/include/libdvbv5/atsc_eit.h renamed from lib/include/descriptors/atsc_eit.h +2 -2
@@ -25,8 +25,8 @@#include <unistd.h> /* ssize_t */ #include <time.h> -#include "descriptors/atsc_header.h" -#include "descriptors.h" +#include <libdvbv5/atsc_header.h> +#include <libdvbv5/descriptors.h> #define ATSC_TABLE_EIT 0xCB
lib/include/libdvbv5/atsc_header.h renamed from lib/include/descriptors/atsc_header.h +0 -0
lib/include/libdvbv5/desc_atsc_service_location.h renamed from lib/include/descriptors/desc_atsc_service_location.h +0 -0
lib/include/libdvbv5/desc_cable_delivery.h renamed from lib/include/descriptors/desc_cable_delivery.h +0 -0
lib/include/libdvbv5/desc_event_extended.h renamed from lib/include/descriptors/desc_event_extended.h +0 -0
lib/include/libdvbv5/desc_event_short.h renamed from lib/include/descriptors/desc_event_short.h +0 -0
lib/include/libdvbv5/desc_extension.h renamed from lib/include/descriptors/desc_extension.h +0 -0
lib/include/libdvbv5/desc_frequency_list.h renamed from lib/include/descriptors/desc_frequency_list.h +0 -0
lib/include/libdvbv5/desc_hierarchy.h renamed from lib/include/descriptors/desc_hierarchy.h +0 -0
lib/include/libdvbv5/desc_isdbt_delivery.h renamed from lib/include/descriptors/desc_isdbt_delivery.h +0 -0
lib/include/libdvbv5/desc_language.h renamed from lib/include/descriptors/desc_language.h +0 -0
lib/include/libdvbv5/desc_logical_channel.h renamed from lib/include/descriptors/desc_logical_channel.h +0 -0
lib/include/libdvbv5/desc_network_name.h renamed from lib/include/descriptors/desc_network_name.h +0 -0
lib/include/libdvbv5/desc_partial_reception.h renamed from lib/include/descriptors/desc_partial_reception.h +0 -0
lib/include/libdvbv5/desc_sat.h renamed from lib/include/descriptors/desc_sat.h +0 -0
lib/include/libdvbv5/desc_service.h renamed from lib/include/descriptors/desc_service.h +0 -0
lib/include/libdvbv5/desc_service_list.h renamed from lib/include/descriptors/desc_service_list.h +0 -0
lib/include/libdvbv5/desc_service_location.h renamed from lib/include/descriptors/desc_service_location.h +0 -0
lib/include/libdvbv5/desc_t2_delivery.h renamed from lib/include/descriptors/desc_t2_delivery.h +0 -0
lib/include/libdvbv5/desc_terrestrial_delivery.h renamed from lib/include/descriptors/desc_terrestrial_delivery.h +0 -0
lib/include/libdvbv5/desc_ts_info.h renamed from lib/include/descriptors/desc_ts_info.h +0 -0
lib/include/libdvbv5/descriptors.h renamed from lib/include/descriptors.h +0 -0
lib/include/libdvbv5/dvb-demux.h renamed from lib/include/dvb-demux.h +0 -0
lib/include/libdvbv5/dvb-fe.h renamed from lib/include/dvb-fe.h +0 -0
lib/include/libdvbv5/dvb-file.h renamed from lib/include/dvb-file.h +0 -0
lib/include/libdvbv5/dvb-frontend.h renamed from lib/include/dvb-frontend.h +0 -0
lib/include/libdvbv5/dvb-log.h renamed from lib/include/dvb-log.h +0 -0
lib/include/libdvbv5/dvb-sat.h renamed from lib/include/dvb-sat.h +0 -0
lib/include/libdvbv5/dvb-scan.h renamed from lib/include/dvb-scan.h +2 -2
@@ -22,9 +22,9 @@#include <stdint.h> #include <linux/dvb/dmx.h> -#include "descriptors.h" +#include <libdvbv5/descriptors.h> -#include "dvb-sat.h" +#include <libdvbv5/dvb-sat.h> /* According with ISO/IEC 13818-1:2007 */
lib/include/libdvbv5/dvb-v5-std.h renamed from lib/include/dvb-v5-std.h +0 -0
lib/include/libdvbv5/eit.h renamed from lib/include/descriptors/eit.h +2 -2
@@ -26,8 +26,8 @@#include <unistd.h> /* ssize_t */ #include <time.h> -#include "descriptors/header.h" -#include "descriptors.h" +#include <libdvbv5/header.h> +#include <libdvbv5/descriptors.h> #define DVB_TABLE_EIT 0x4E#define DVB_TABLE_EIT_OTHER 0x4F
lib/include/libdvbv5/header.h renamed from lib/include/descriptors/header.h +0 -0
lib/include/libdvbv5/mgt.h renamed from lib/include/descriptors/mgt.h +2 -2
@@ -24,8 +24,8 @@#include <stdint.h> #include <unistd.h> /* ssize_t */ -#include "descriptors/atsc_header.h" -#include "descriptors.h" +#include <libdvbv5/atsc_header.h> +#include <libdvbv5/descriptors.h> #define ATSC_TABLE_MGT 0xC7
lib/include/libdvbv5/mpeg_es.h renamed from lib/include/descriptors/mpeg_es.h +0 -0
lib/include/libdvbv5/mpeg_pes.h renamed from lib/include/descriptors/mpeg_pes.h +0 -0
lib/include/libdvbv5/mpeg_ts.h renamed from lib/include/descriptors/mpeg_ts.h +0 -0
lib/include/libdvbv5/nit.h renamed from lib/include/descriptors/nit.h +2 -2
@@ -25,8 +25,8 @@#include <stdint.h> #include <unistd.h> /* ssize_t */ -#include "descriptors/header.h" -#include "descriptors.h" +#include <libdvbv5/header.h> +#include <libdvbv5/descriptors.h> #define DVB_TABLE_NIT 0x40#define DVB_TABLE_NIT2 0x41
lib/include/libdvbv5/pat.h renamed from lib/include/descriptors/pat.h +1 -1
@@ -25,7 +25,7 @@#include <stdint.h> #include <unistd.h> /* ssize_t */ -#include "descriptors/header.h" +#include <libdvbv5/header.h> #define DVB_TABLE_PAT 0#define DVB_TABLE_PAT_PID 0
lib/include/libdvbv5/pmt.h renamed from lib/include/descriptors/pmt.h +1 -1
@@ -25,7 +25,7 @@#include <stdint.h> #include <unistd.h> /* ssize_t */ -#include "descriptors/header.h" +#include <libdvbv5/header.h> #define DVB_TABLE_PMT 2
lib/include/libdvbv5/sdt.h renamed from lib/include/descriptors/sdt.h +2 -2
@@ -25,8 +25,8 @@#include <stdint.h> #include <unistd.h> /* ssize_t */ -#include "descriptors/header.h" -#include "descriptors.h" +#include <libdvbv5/header.h> +#include <libdvbv5/descriptors.h> #define DVB_TABLE_SDT 0x42#define DVB_TABLE_SDT2 0x46
lib/include/libdvbv5/vct.h renamed from lib/include/descriptors/vct.h +2 -2
@@ -25,8 +25,8 @@#include <stdint.h> #include <unistd.h> /* ssize_t */ -#include "descriptors/atsc_header.h" -#include "descriptors.h" +#include <libdvbv5/atsc_header.h> +#include <libdvbv5/descriptors.h> #define ATSC_TABLE_TVCT 0xc8#define ATSC_TABLE_CVCT 0xc9
lib/libdvbv5/Makefile.am +92 -46
150 lines not on this page · raw message
lib/libdvbv5/descriptors.c +31 -31
70 lines not on this page · raw message
lib/libdvbv5/descriptors/atsc_eit.c +2 -2
@@ -18,8 +18,8 @@* */ -#include "descriptors/atsc_eit.h" -#include "dvb-fe.h" +#include <libdvbv5/atsc_eit.h> +#include <libdvbv5/dvb-fe.h> void atsc_table_eit_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length) {
lib/libdvbv5/descriptors/atsc_header.c +3 -3
@@ -18,9 +18,9 @@* */ -#include "descriptors/atsc_header.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/atsc_header.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> int atsc_table_header_init (struct atsc_table_header *t) {
lib/libdvbv5/descriptors/desc_atsc_service_location.c +4 -4
@@ -18,9 +18,9 @@* */ -#include "descriptors.h" -#include "descriptors/desc_atsc_service_location.h" -#include "dvb-fe.h" +#include <libdvbv5/descriptors.h> +#include <libdvbv5/desc_atsc_service_location.h> +#include <libdvbv5/dvb-fe.h> void atsc_desc_service_location_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc)
@@ -84,4 +84,4 @@ void atsc_desc_service_location_free(struct dvb_desc *desc)if (s_loc->elementary)free (s_loc->elementary); -} +}
lib/libdvbv5/descriptors/desc_cable_delivery.c +3 -3
@@ -20,9 +20,9 @@* Described at ETSI EN 300 468 V1.11.1 (2010-04) */ -#include "descriptors/desc_cable_delivery.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_cable_delivery.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_cable_delivery_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_event_extended.c +4 -4
@@ -19,10 +19,10 @@* */ -#include "descriptors/desc_event_extended.h" -#include "descriptors.h" -#include "dvb-fe.h" -#include "parse_string.h" +#include <libdvbv5/desc_event_extended.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> +#include <parse_string.h> void dvb_desc_event_extended_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_event_short.c +4 -4
@@ -19,10 +19,10 @@* */ -#include "descriptors/desc_event_short.h" -#include "descriptors.h" -#include "dvb-fe.h" -#include "parse_string.h" +#include <libdvbv5/desc_event_short.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> +#include <parse_string.h> void dvb_desc_event_short_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_extension.c +4 -4
@@ -18,10 +18,10 @@* */ -#include "descriptors.h" -#include "descriptors/desc_extension.h" -#include "descriptors/desc_t2_delivery.h" -#include "dvb-fe.h" +#include <libdvbv5/descriptors.h> +#include <libdvbv5/desc_extension.h> +#include <libdvbv5/desc_t2_delivery.h> +#include <libdvbv5/dvb-fe.h> const struct dvb_ext_descriptor dvb_ext_descriptors[] = { [0 ...255 ] = {
lib/libdvbv5/descriptors/desc_frequency_list.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/desc_frequency_list.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_frequency_list.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_frequency_list_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_hierarchy.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/desc_hierarchy.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_hierarchy.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_hierarchy_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_isdbt_delivery.c +4 -4
@@ -18,9 +18,9 @@* */ -#include "descriptors.h" -#include "descriptors/desc_isdbt_delivery.h" -#include "dvb-fe.h" +#include <libdvbv5/descriptors.h> +#include <libdvbv5/desc_isdbt_delivery.h> +#include <libdvbv5/dvb-fe.h> void isdbt_desc_delivery_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc)
@@ -100,4 +100,4 @@ void isdbt_desc_delivery_free(struct dvb_desc *desc)const struct isdbt_desc_terrestrial_delivery_system *d = (const void *) desc;free (d->frequency); -} +}
lib/libdvbv5/descriptors/desc_language.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/desc_language.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_language.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_language_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_logical_channel.c +4 -4
@@ -22,10 +22,10 @@* http://tdt.telecom.pt/recursos/apresentacoes/Signalling Specifications for DTT deployment in Portugal.pdf */ -#include "descriptors.h" -#include "descriptors/desc_logical_channel.h" -#include "dvb-fe.h" -#include "parse_string.h" +#include <libdvbv5/descriptors.h> +#include <libdvbv5/desc_logical_channel.h> +#include <libdvbv5/dvb-fe.h> +#include <parse_string.h> void dvb_desc_logical_channel_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc)
lib/libdvbv5/descriptors/desc_network_name.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/desc_network_name.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_network_name.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> #include "parse_string.h" void dvb_desc_network_name_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc)
lib/libdvbv5/descriptors/desc_partial_reception.c +4 -4
@@ -19,10 +19,10 @@* Described on ARIB STD-B10 as Partial reception descriptor */ -#include "descriptors.h" -#include "descriptors/desc_partial_reception.h" -#include "dvb-fe.h" -#include "parse_string.h" +#include <libdvbv5/descriptors.h> +#include <libdvbv5/desc_partial_reception.h> +#include <libdvbv5/dvb-fe.h> +#include <parse_string.h> void isdb_desc_partial_reception_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc)
lib/libdvbv5/descriptors/desc_sat.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/desc_sat.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_sat.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_sat_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_service.c +4 -4
@@ -19,10 +19,10 @@* */ -#include "descriptors/desc_service.h" -#include "descriptors.h" -#include "dvb-fe.h" -#include "parse_string.h" +#include <libdvbv5/desc_service.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> +#include <parse_string.h> void dvb_desc_service_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_service_list.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/desc_service_list.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_service_list.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_service_list_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_service_location.c +6 -5
@@ -18,19 +18,20 @@* */ -#include "descriptors/desc_service_location.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_service_location.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_service_location_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {struct dvb_desc_service_location *service_location = (struct dvb_desc_service_location *) desc; -uint8_t *endbuf = buf + desc->length; +const uint8_t *endbuf = buf + desc->length;ssize_t size =sizeof (struct dvb_desc_service_location ) -sizeof (struct dvb_desc );struct dvb_desc_service_location_element *element;int i;if (buf + size > endbuf) { -dvb_logerr ("%s: short read %d/%zd bytes" , __FUNCTION__, endbuf - buf, size); +dvb_logerr ("%s: short read %zd/%zd bytes" , __FUNCTION__, endbuf - buf, size);return ; }
@@ -43,7 +44,7 @@ void dvb_desc_service_location_init(struct dvb_v5_fe_parms *parms, const uint8_t size = service_location->elements *sizeof (struct dvb_desc_service_location_element );if (buf + size > endbuf) { -dvb_logerr ("%s: short read %d/%zd bytes" , __FUNCTION__, endbuf - buf, size); +dvb_logerr ("%s: short read %zd/%zd bytes" , __FUNCTION__, endbuf - buf, size);return ; } service_location->element =malloc (size);
lib/libdvbv5/descriptors/desc_t2_delivery.c +4 -4
@@ -19,10 +19,10 @@* Based on ETSI EN 300 468 V1.11.1 (2010-04) */ -#include "descriptors.h" -#include "descriptors/desc_extension.h" -#include "descriptors/desc_t2_delivery.h" -#include "dvb-fe.h" +#include <libdvbv5/descriptors.h> +#include <libdvbv5/desc_extension.h> +#include <libdvbv5/desc_t2_delivery.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_t2_delivery_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
lib/libdvbv5/descriptors/desc_terrestrial_delivery.c +3 -3
@@ -21,9 +21,9 @@* */ -#include "descriptors/desc_terrestrial_delivery.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/desc_terrestrial_delivery.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_desc_terrestrial_delivery_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc) {
lib/libdvbv5/descriptors/desc_ts_info.c +4 -4
@@ -19,10 +19,10 @@* Described on ARIB STD-B10 as TS information descriptor */ -#include "descriptors.h" -#include "descriptors/desc_ts_info.h" -#include "dvb-fe.h" -#include "parse_string.h" +#include <libdvbv5/descriptors.h> +#include <libdvbv5/desc_ts_info.h> +#include <libdvbv5/dvb-fe.h> +#include <parse_string.h> void dvb_desc_ts_info_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,struct dvb_desc *desc)
lib/libdvbv5/descriptors/eit.c +2 -2
@@ -19,8 +19,8 @@* */ -#include "descriptors/eit.h" -#include "dvb-fe.h" +#include <libdvbv5/eit.h> +#include <libdvbv5/dvb-fe.h> void dvb_table_eit_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length) {
lib/libdvbv5/descriptors/header.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/header.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/header.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> int dvb_table_header_init (struct dvb_table_header *t) {
lib/libdvbv5/descriptors/mgt.c +2 -2
@@ -18,8 +18,8 @@* */ -#include "descriptors/mgt.h" -#include "dvb-fe.h" +#include <libdvbv5/mgt.h> +#include <libdvbv5/dvb-fe.h> void atsc_table_mgt_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length) {
lib/libdvbv5/descriptors/mpeg_es.c +3 -3
@@ -18,9 +18,9 @@* */ -#include "descriptors/mpeg_es.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/mpeg_es.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> int dvb_mpeg_es_seq_start_init (const uint8_t *buf,ssize_t buflen,struct dvb_mpeg_es_seq_start *seq_start) {
lib/libdvbv5/descriptors/mpeg_pes.c +3 -3
@@ -18,9 +18,9 @@* */ -#include "descriptors/mpeg_pes.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/mpeg_pes.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> ssize_t dvb_mpeg_pes_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table) {
lib/libdvbv5/descriptors/mpeg_ts.c +3 -3
@@ -18,9 +18,9 @@* */ -#include "descriptors/mpeg_ts.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/mpeg_ts.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> ssize_t dvb_mpeg_ts_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length) {
lib/libdvbv5/descriptors/nit.c +2 -2
@@ -19,8 +19,8 @@* */ -#include "descriptors/nit.h" -#include "dvb-fe.h" +#include <libdvbv5/nit.h> +#include <libdvbv5/dvb-fe.h> void dvb_table_nit_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length)
lib/libdvbv5/descriptors/pat.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/pat.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/pat.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> void dvb_table_pat_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length)
lib/libdvbv5/descriptors/pmt.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/pmt.h" -#include "descriptors.h" -#include "dvb-fe.h" +#include <libdvbv5/pmt.h> +#include <libdvbv5/descriptors.h> +#include <libdvbv5/dvb-fe.h> #include <string.h> /* memcpy */
lib/libdvbv5/descriptors/sdt.c +2 -2
@@ -19,8 +19,8 @@* */ -#include "descriptors/sdt.h" -#include "dvb-fe.h" +#include <libdvbv5/sdt.h> +#include <libdvbv5/dvb-fe.h> void dvb_table_sdt_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length)
lib/libdvbv5/descriptors/vct.c +3 -3
@@ -19,9 +19,9 @@* */ -#include "descriptors/vct.h" -#include "dvb-fe.h" -#include "parse_string.h" +#include <libdvbv5/vct.h> +#include <libdvbv5/dvb-fe.h> +#include <parse_string.h> void atsc_table_vct_init (struct dvb_v5_fe_parms *parms,const uint8_t *buf,ssize_t buflen,uint8_t *table,ssize_t *table_length)
lib/libdvbv5/dvb-demux.c +1 -1
@@ -38,7 +38,7 @@#include <fcntl.h> #include <stdlib.h> /* free */ -#include "dvb-demux.h" +#include <libdvbv5/dvb-demux.h> int dvb_dmx_open (int adapter,int demux) {
lib/libdvbv5/dvb-fe.c +2 -2
@@ -19,8 +19,8 @@#include <sys/types.h> #include "dvb-v5.h" -#include "dvb-v5-std.h" -#include "dvb-fe.h" +#include <libdvbv5/dvb-v5-std.h> +#include <libdvbv5/dvb-fe.h> #include <inttypes.h> #include <math.h>
lib/libdvbv5/dvb-file.c +24 -24
54 lines not on this page · raw message
lib/libdvbv5/dvb-legacy-channel-format.c +2 -2
@@ -21,8 +21,8 @@#include <stdlib.h> #include <string.h> -#include "dvb-file.h" -#include "dvb-v5-std.h" +#include <libdvbv5/dvb-file.h> +#include <libdvbv5/dvb-v5-std.h> /* * Standard channel.conf format for DVB-T, DVB-C, DVB-S and ATSC
lib/libdvbv5/dvb-log.c +1 -1
@@ -19,7 +19,7 @@* */ -#include "dvb-log.h" +#include <libdvbv5/dvb-log.h> #include <stdio.h> #include <unistd.h>
lib/libdvbv5/dvb-sat.c +2 -2
@@ -23,8 +23,8 @@#include <unistd.h> #include <strings.h> /* strcasecmp */ -#include "dvb-fe.h" -#include "dvb-v5-std.h" +#include <libdvbv5/dvb-fe.h> +#include <libdvbv5/dvb-v5-std.h> static const struct dvb_sat_lnb lnb[] = { {
lib/libdvbv5/dvb-scan.c +22 -22
52 lines not on this page · raw message
lib/libdvbv5/dvb-v5-std.c +1 -1
@@ -21,7 +21,7 @@*/ #include <stddef.h> -#include "dvb-v5-std.h" +#include <libdvbv5/dvb-v5-std.h> #include "dvb-v5.h" const unsigned int sys_dvbt_props[] = {
lib/libdvbv5/dvb-v5.h +1 -1
@@ -3,7 +3,7 @@*/ #ifndef _DVB_V5_CONSTS_H #define _DVB_V5_CONSTS_H -#include "../include/dvb-frontend.h" +#include <libdvbv5/dvb-frontend.h> struct fe_caps_name { unsigned idx; char *name;
lib/libdvbv5/dvb-zap-format.c +2 -2
@@ -22,8 +22,8 @@#include <stdlib.h> #include <string.h> -#include "dvb-file.h" -#include "dvb-v5-std.h" +#include <libdvbv5/dvb-file.h> +#include <libdvbv5/dvb-v5-std.h> /* * Standard channel.conf format for DVB-T, DVB-C, DVB-S and ATSC
lib/libdvbv5/gen_dvb_structs.pl +2 -2
@@ -481,7 +481,7 @@ print OUT <<EOF; */ #ifndef _DVB_V5_CONSTS_H #define _DVB_V5_CONSTS_H -#include "../include/dvb-frontend.h" +#include <libdvbv5/dvb-frontend.h> EOF output_arrays ("fe_caps_name", \%fe_caps, "unsigned", 1, 1); output_arrays ("fe_status_name", \%fe_status, "unsigned", 1, 1);
@@ -510,7 +510,7 @@ print OUT <<EOF; */ #include <stddef.h> -#include "dvb-v5.h" +#include <libdvbv5/dvb-v5.h> EOF output_arrays ("fe_caps_name", \%fe_caps, "unsigned", 1, 0);
lib/libdvbv5/parse_string.c +2 -2
@@ -30,8 +30,8 @@#include <strings.h> /* strcasecmp */ #include "parse_string.h" -#include "dvb-log.h" -#include "dvb-fe.h" +#include <libdvbv5/dvb-log.h> +#include <libdvbv5/dvb-fe.h> #define CS_OPTIONS "//TRANSLIT"
utils/dvb/dvb-fe-tool.c +1 -1
@@ -18,7 +18,7 @@* */ -#include "dvb-file.h" +#include "libdvbv5/dvb-file.h" #include <config.h> #include <argp.h> #include <stdlib.h>
utils/dvb/dvb-format-convert.c +3 -3
@@ -31,9 +31,9 @@#include <config.h> -#include "dvb-file.h" -#include "dvb-demux.h" -#include "dvb-scan.h" +#include "libdvbv5/dvb-file.h" +#include "libdvbv5/dvb-demux.h" +#include "libdvbv5/dvb-scan.h" #define PROGRAM_NAME "dvb-format-convert"
utils/dvb/dvbv5-scan.c +4 -4
@@ -33,10 +33,10 @@#include <config.h> #include <linux/dvb/dmx.h> -#include "dvb-file.h" -#include "dvb-demux.h" -#include "dvb-v5-std.h" -#include "dvb-scan.h" +#include "libdvbv5/dvb-file.h" +#include "libdvbv5/dvb-demux.h" +#include "libdvbv5/dvb-v5-std.h" +#include "libdvbv5/dvb-scan.h" #define PROGRAM_NAME "dvbv5-scan"#define DEFAULT_OUTPUT "dvb_channel.conf"
utils/dvb/dvbv5-zap.c +4 -4
@@ -37,10 +37,10 @@#include <config.h> #include <linux/dvb/dmx.h> -#include "dvb-file.h" -#include "dvb-demux.h" -#include "dvb-scan.h" -#include "descriptors/header.h" +#include "libdvbv5/dvb-file.h" +#include "libdvbv5/dvb-demux.h" +#include "libdvbv5/dvb-scan.h" +#include "libdvbv5/header.h" #define CHANNEL_FILE "channels.conf"#define PROGRAM_NAME "dvbv5-zap"
Signature · 1 line
1.8.3.2