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

int gp_port_get_timeout ( GPPort port,
int *  timeout 

Get the current port timeout.

port a GPPort
timeout pointer to timeout
Retreives the current timeout of the port.

a gphoto2 error code

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

References CHECK_NULL, gp_log(), GP_LOG_DEBUG, GP_OK, and _GPPort::timeout.

Referenced by gp_port_timeout_get().

      gp_log (GP_LOG_DEBUG, "gphoto2-port", _("Getting timeout..."));

      CHECK_NULL (port);

      gp_log (GP_LOG_DEBUG, "gphoto2-port", _("Current timeout: %i "
            "milliseconds"), port->timeout);

        *timeout = port->timeout;

        return GP_OK;

Generated by  Doxygen 1.6.0   Back to index