From cba531bbad8481db47318ac8146c54252100f2ad Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 13 Nov 2016 13:10:30 +0100 Subject: Add first filter to display only some FIGs TODO: many FIGs print without using printbuf, fir which the filter doesn't work yet. --- src/fig0_24.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fig0_24.cpp') diff --git a/src/fig0_24.cpp b/src/fig0_24.cpp index 7867d9e..d9d0284 100644 --- a/src/fig0_24.cpp +++ b/src/fig0_24.cpp @@ -48,7 +48,7 @@ bool fig0_24_is_complete(int services_id) // FIG 0/24 fig0.oe() Services // ETSI EN 300 401 8.1.10.2 -bool fig0_24(fig0_common_t& fig0, int indent) +bool fig0_24(fig0_common_t& fig0, const display_settings_t &disp) { uint64_t key; uint32_t SId; @@ -92,14 +92,14 @@ bool fig0_24(fig0_common_t& fig0, int indent) sprintf(tmpbuf, ", CEI"); strcat(desc, tmpbuf); } - printbuf(desc, indent+1, NULL, 0); + printbuf(desc, disp+1, NULL, 0); i++; for(j = i; ((j < (i + (Number_of_EIds * 2))) && (j < fig0.figlen)); j += 2) { // iterate over EIds EId = ((uint16_t)f[j] <<8) | (uint16_t)f[j+1]; sprintf(desc, "EId 0x%04x", EId); - printbuf(desc, indent+2, NULL, 0); + printbuf(desc, disp+2, NULL, 0); } i += (Number_of_EIds * 2); } -- cgit v1.2.3