Implement annotation export for all rows
[pulseview.git] / pv / data / decode / rowdata.cpp
index af1fc449ac35924dac9796c7f14f0ca37f49f137..2a26169eb6cc0f14adb5a107726c40ee891838b6 100644 (file)
@@ -42,11 +42,11 @@ void RowData::get_annotation_subset(
                        dest.push_back(annotation);
 }
 
-void RowData::push_annotation(const Annotation &a)
+void RowData::emplace_annotation(srd_proto_data *pdata, const Row *row)
 {
-       annotations_.push_back(a);
+       annotations_.emplace_back(pdata, row);
 }
 
-} // decode
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv