-Logic::Logic(const sr_datafeed_meta_logic &meta,
- uint64_t samplerate) :
- SignalData(samplerate),
- _num_probes(meta.num_probes)
+Logic::Logic(unsigned int num_channels) :
+ SignalData(),
+ num_channels_(num_channels)
+{
+ assert(num_channels_ > 0);
+}
+
+unsigned int Logic::num_channels() const
+{
+ return num_channels_;
+}
+
+void Logic::push_segment(shared_ptr<LogicSegment> &segment)