From: Uwe Hermann Date: Sun, 19 Apr 2015 17:18:05 +0000 (+0200) Subject: sp_get_port_usb_vid_pid(): Document that usb_vid/usb_pid can be NULL. X-Git-Tag: libserialport-0.1.1~45 X-Git-Url: https://sigrok.org/gitweb/?p=libserialport.git;a=commitdiff_plain;h=9eb9f07130243f0cf5f2ce6a6ae295001eda1c8b sp_get_port_usb_vid_pid(): Document that usb_vid/usb_pid can be NULL. --- 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. *