aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig0_18.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-13 13:10:30 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-11-13 13:10:30 +0100
commitcba531bbad8481db47318ac8146c54252100f2ad (patch)
tree3352e929cfee28b7ebb6003eff9b32d932a9301c /src/fig0_18.cpp
parenta1415d55cd2db58ff5469cabe64efb9ff29dcec0 (diff)
downloadetisnoop-cba531bbad8481db47318ac8146c54252100f2ad.tar.gz
etisnoop-cba531bbad8481db47318ac8146c54252100f2ad.tar.bz2
etisnoop-cba531bbad8481db47318ac8146c54252100f2ad.zip
Add first filter to display only some FIGs
TODO: many FIGs print without using printbuf, fir which the filter doesn't work yet.
Diffstat (limited to 'src/fig0_18.cpp')
-rw-r--r--src/fig0_18.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fig0_18.cpp b/src/fig0_18.cpp
index 46a399c..abbf9f7 100644
--- a/src/fig0_18.cpp
+++ b/src/fig0_18.cpp
@@ -49,7 +49,7 @@ bool fig0_18_is_complete(int services_id)
// FIG 0/18 Announcement support
// ETSI EN 300 401 8.1.6.1
-bool fig0_18(fig0_common_t& fig0, int indent)
+bool fig0_18(fig0_common_t& fig0, const display_settings_t &disp)
{
uint32_t key;
uint16_t SId, Asu_flags;
@@ -83,18 +83,18 @@ bool fig0_18(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 += 5;
for(j = 0; (j < Number_clusters) && (i < fig0.figlen); j++) {
// iterate over Cluster Id
sprintf(desc, "Cluster Id=0x%X", f[i]);
- printbuf(desc, indent+2, NULL, 0);
+ printbuf(desc, disp+2, NULL, 0);
i++;
}
if (j < Number_clusters) {
sprintf(desc, "missing Cluster Id, fig length too short !");
- printbuf(desc, indent+1, NULL, 0);
+ printbuf(desc, disp+1, NULL, 0);
fprintf(stderr, "WARNING: FIG %d/%d length %d too short !\n", figtype, fig0.ext(), fig0.figlen);
}
@@ -102,7 +102,7 @@ bool fig0_18(fig0_common_t& fig0, int indent)
for(j = 0; j < 16; j++) {
if (Asu_flags & (1 << j)) {
sprintf(desc, "Announcement support=%s", get_announcement_type(j));
- printbuf(desc, indent+2, NULL, 0);
+ printbuf(desc, disp+2, NULL, 0);
}
}
}