]> sigrok.org Git - libserialport.git/blobdiff - libserialport.h.in
Constify the sp_get_port_transport() parameter.
[libserialport.git] / libserialport.h.in
index 49697a941cdb1f19298c8c8cdd0094180974786a..1dd4715f289ef740fb9fc76625d3cae809e1a5ef 100644 (file)
@@ -426,7 +426,7 @@ char *sp_get_port_description(struct sp_port *port);
  *
  * @since 0.1.1
  */
-enum sp_transport sp_get_port_transport(struct sp_port *port);
+enum sp_transport sp_get_port_transport(const struct sp_port *port);
 
 /**
  * Get the USB bus number and address on bus of a USB serial adapter port.