- case SR_DF_META_LOGIC:
- {
- const sr_datafeed_meta_logic *meta_logic =
- (sr_datafeed_meta_logic*)packet->payload;
- int num_enabled_probes = 0;
-
- for (int i = 0; i < meta_logic->num_probes; i++) {
- const sr_probe *probe =
- (sr_probe *)g_slist_nth_data(sdi->probes, i);
- if (probe->enabled) {
- probeList[num_enabled_probes++] = probe->index;
- }
- }
-
- /* How many bytes we need to store num_enabled_probes bits */
- unitSize = (num_enabled_probes + 7) / 8;
- sigData = g_array_new(FALSE, FALSE, unitSize);
- }