]> sigrok.org Git - libsigrok.git/blobdiff - proto.h
Pass sr_datafeed_packets and payloads with const pointers
[libsigrok.git] / proto.h
diff --git a/proto.h b/proto.h
index c93a796e94b50359a51f55737cbf30c85b9cba71..870dc985d74d5fb4509f0503d4170658b2073191 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -89,7 +89,7 @@ SR_API const struct sr_hwcap_option *sr_devopt_name_get(const char *optname);
 /*--- session.c -------------------------------------------------------------*/
 
 typedef void (*sr_datafeed_callback_t)(const struct sr_dev_inst *sdi,
-               struct sr_datafeed_packet *packet);
+               const struct sr_datafeed_packet *packet);
 
 /* Session setup */
 SR_API int sr_session_load(const char *filename);