Unify get_samples() semantics for AnalogSegment and LogicSegment
[pulseview.git] / pv / data / logicsegment.hpp
index c9e85593961d2bfbed83ed0797862ec594df0811..0931e2c46c9f6ed86a9c1d8f8706c8477cc56a26 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef PULSEVIEW_PV_DATA_LOGICSEGMENT_HPP
@@ -69,8 +68,7 @@ public:
 
        void append_payload(std::shared_ptr<sigrok::Logic> logic);
 
-       void get_samples(uint8_t *const data,
-               int64_t start_sample, int64_t end_sample) const;
+       const uint8_t* get_samples(int64_t start_sample, int64_t end_sample) const;
 
 private:
        uint64_t unpack_sample(const uint8_t *ptr) const;