X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=libserialport.h.in;fp=libserialport.h.in;h=c37c1cacc24d8e8f9735367b12c7da7665cf7f8e;hb=9eb9f07130243f0cf5f2ce6a6ae295001eda1c8b;hp=43d7ee7e40ab8a2a6d1c2ca7b0436e0641eccbe0;hpb=1b91c6eadbcbd2356441920c11c9385083b93e91;p=libserialport.git diff --git a/libserialport.h.in b/libserialport.h.in index 43d7ee7..c37c1ca 100644 --- a/libserialport.h.in +++ b/libserialport.h.in @@ -446,8 +446,10 @@ enum sp_return sp_get_port_usb_bus_address(const struct sp_port *port, * Get the USB Vendor ID and Product ID of a USB serial adapter port. * * @param[in] port Pointer to a port structure. Must not be NULL. - * @param[out] usb_vid Pointer to a variable to store the USB VID. Must not be NULL. - * @param[out] usb_pid Pointer to a variable to store the USB PID. Must not be NULL. + * @param[out] usb_vid Pointer to a variable to store the USB VID. + * Can be NULL (in that case it will be ignored). + * @param[out] usb_pid Pointer to a variable to store the USB PID. + * Can be NULL (in that case it will be ignored). * * @return SP_OK upon success, a negative error code otherwise. *