Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_port_usb_find_device_by_class ( GPPort port,
int  mainclass,
int  subclass,
int  protocol 
)

Find USB device by interface class.

Parameters:
port a GPPort
mainclass the USB interface class
subclass the USB interface subclass
protocol the USB interface protocol
Find the USB device with the specified vendor:product id pair.

Returns:
a gphoto2 error code

Definition at line 793 of file gphoto2-port.c.

References CHECK_NULL, CHECK_RESULT, _GPPortOperations::find_device_by_class, GP_OK, _GPPortPrivateCore::ops, and _GPPort::pc.

Referenced by gp_camera_init().

{
      CHECK_NULL (port);
      CHECK_INIT (port);

      CHECK_SUPP (port, "find_device_by_class", port->pc->ops->find_device_by_class);
      CHECK_RESULT (port->pc->ops->find_device_by_class (port, mainclass, subclass, protocol));

        return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index