]> sigrok.org Git - libsigrok.git/commit
Pass sr_datafeed_packets and payloads with const pointers
authorJoel Holdsworth <redacted>
Thu, 13 Dec 2012 21:07:53 +0000 (21:07 +0000)
committerJoel Holdsworth <redacted>
Thu, 20 Dec 2012 07:51:21 +0000 (07:51 +0000)
commitbf53457d1ddea58d1cb7e4feea83ad0cc1d63031
tree5136ff51b7698109b8444c3b04957223b005cc31
parent16d6e56d124dcedf7273212bbfab1aed6ac7e7aa
Pass sr_datafeed_packets and payloads with const pointers

This patch marks packet structures and their payloads as const.
This indicates to packet receivers that modifications to these are
not allowed. In general all pointers should be marked const unless
modification of the referenced data is explicitly allowed.
libsigrok-internal.h
libsigrok.h
output/analog.c
proto.h
session.c