]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok.h
Pass sr_datafeed_packets and payloads with const pointers
[libsigrok.git] / libsigrok.h
index 9946691e267503cd6fab4abfbf681da39d83b334..f371c944fd6ff85ac6b699ec1cba06f40f272836 100644 (file)
@@ -268,7 +268,7 @@ struct sr_context;
 
 struct sr_datafeed_packet {
        uint16_t type;
-       void *payload;
+       const void *payload;
 };
 
 struct sr_datafeed_header {
@@ -336,7 +336,7 @@ struct sr_output_format {
        int (*event) (struct sr_output *o, int event_type, uint8_t **data_out,
                      uint64_t *length_out);
        GString *(*recv) (struct sr_output *o, const struct sr_dev_inst *sdi,
-                       struct sr_datafeed_packet *packet);
+                       const struct sr_datafeed_packet *packet);
        int (*cleanup) (struct sr_output *o);
 };