libdvbv5: constify and hide dvb_sat_lnb
PATCH 1/1 libdvbv5: constify and hide dvb_sat_lnb
Signed-off-by Gregor Jasny <[email protected]>
--- lib/include/dvb-fe.h | 2 +- lib/include/libsat.h | 2 +- lib/libdvbv5/libsat.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
lib/include/dvb-fe.h +1 -1
@@ -76,7 +76,7 @@ struct dvb_v5_fe_parms {struct dvb_v5_stats stats;/* Satellite specific stuff, specified by the library client */ -struct dvb_sat_lnb *lnb; +const struct dvb_sat_lnb *lnb;int sat_number;unsigned freq_bpf;
lib/include/libsat.h +1 -1
@@ -47,7 +47,7 @@ extern "C" {int dvb_sat_search_lnb (const char *name);int print_lnb (int i);void print_all_lnb (void ); -struct dvb_sat_lnb *dvb_sat_get_lnb (int i); +const struct dvb_sat_lnb *dvb_sat_get_lnb (int i);int dvb_sat_set_parms (struct dvb_v5_fe_parms *parms);int dvb_sat_get_parms (struct dvb_v5_fe_parms *parms);
lib/libdvbv5/libsat.c +1 -1
@@ -25,7 +25,7 @@#include "dvb-fe.h" #include "dvb-v5-std.h" -struct dvb_sat_lnb lnb[] = { +static const struct dvb_sat_lnb lnb[] = { { .name ="Europe" , .alias ="UNIVERSAL" ,
Signature · 1 line
1.7.10
PATCH 1/1 libdvbv5: constify and hide dvb_sat_lnb
Signed-off-by Gregor Jasny <[email protected]>
--- lib/include/dvb-fe.h | 2 +- lib/include/libsat.h | 2 +- lib/libdvbv5/libsat.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
lib/include/dvb-fe.h +1 -1
@@ -76,7 +76,7 @@ struct dvb_v5_fe_parms {struct dvb_v5_stats stats;/* Satellite specific stuff, specified by the library client */ -struct dvb_sat_lnb *lnb; +const struct dvb_sat_lnb *lnb;int sat_number;unsigned freq_bpf;
lib/include/libsat.h +1 -1
@@ -47,7 +47,7 @@ extern "C" {int dvb_sat_search_lnb (const char *name);int print_lnb (int i);void print_all_lnb (void ); -struct dvb_sat_lnb *dvb_sat_get_lnb (int i); +const struct dvb_sat_lnb *dvb_sat_get_lnb (int i);int dvb_sat_set_parms (struct dvb_v5_fe_parms *parms);int dvb_sat_get_parms (struct dvb_v5_fe_parms *parms);
lib/libdvbv5/libsat.c +2 -2
@@ -25,7 +25,7 @@#include "dvb-fe.h" #include "dvb-v5-std.h" -struct dvb_sat_lnb lnb[] = { +static const struct dvb_sat_lnb lnb[] = { { .name ="Europe" , .alias ="UNIVERSAL" ,
@@ -347,7 +347,7 @@ static int dvbsat_diseqc_set_input(struct dvb_v5_fe_parms *parms, uint16_t t)int dvb_sat_set_parms (struct dvb_v5_fe_parms *parms) { -struct dvb_sat_lnb *lnb = parms->lnb; +const struct dvb_sat_lnb *lnb = parms->lnb;enum dvb_sat_polarization pol;dvb_fe_retrieve_parm (parms,DTV_POLARIZATION ,& pol);uint32_t freq;
Signature · 1 line
1.7.10