Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_port_get_settings ( GPPort port,
GPPortSettings settings 

Get the current port settings.

port a GPPort
settings pointer to the retrieved settings
Retreives the current settings of a port.

a gphoto2 error code

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

References CHECK_NULL, GP_OK, and _GPPort::settings.

Referenced by camera_init(), gp_camera_set_port_speed(), and gp_port_settings_get().

      CHECK_NULL (port);

        memcpy (settings, &(port->settings), sizeof (gp_port_settings));

        return GP_OK;

Generated by  Doxygen 1.6.0   Back to index