mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Constify the sp_get_port_transport() parameter.
This commit is contained in:
parent
3dd4a2ae39
commit
ad036cc8ef
@ -426,7 +426,7 @@ char *sp_get_port_description(struct sp_port *port);
|
|||||||
*
|
*
|
||||||
* @since 0.1.1
|
* @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.
|
* Get the USB bus number and address on bus of a USB serial adapter port.
|
||||||
|
@ -136,7 +136,7 @@ SP_API char *sp_get_port_description(struct sp_port *port)
|
|||||||
RETURN_STRING(port->description);
|
RETURN_STRING(port->description);
|
||||||
}
|
}
|
||||||
|
|
||||||
SP_API enum sp_transport sp_get_port_transport(struct sp_port *port)
|
SP_API enum sp_transport sp_get_port_transport(const struct sp_port *port)
|
||||||
{
|
{
|
||||||
TRACE("%p", port);
|
TRACE("%p", port);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user