X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=libsigrok.h;h=f371c944fd6ff85ac6b699ec1cba06f40f272836;hb=35e199da505f5b8fadffa58875aaca70a8fde4f2;hp=9946691e267503cd6fab4abfbf681da39d83b334;hpb=801c7800c6260a2e12aa2618263a717334946eb8;p=libsigrok.git diff --git a/libsigrok.h b/libsigrok.h index 9946691e..f371c944 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -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); };