Logo Search packages:      
Sourcecode: libgphoto2 version File versions

const char* gp_port_get_error ( GPPort port  ) 

Get verbose port error message.

port a GPPort
Retrieves an error message from a port. If you want to make sure that you get correct error messages, you need to call gp_port_set_error with an error message of NULL each time before calling another port-related function of which you want to check the return value.

a translated error message

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

References _GPPortPrivateCore::error, and _GPPort::pc.

      if (port && port->pc && strlen (port->pc->error))
            return (port->pc->error);

      return _("No error description available");

Generated by  Doxygen 1.6.0   Back to index