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

int gp_port_get_info ( GPPort port,
GPPortInfo info 

Retreives information about the port.

Retrieves the informations set by gp_port_set_info().

port a GPPort
info GPPortInfo
a gphoto2 error code

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

References CHECK_NULL, GP_OK, _GPPortPrivateCore::info, and _GPPort::pc.

      CHECK_NULL (port && info);

      memcpy (info, &port->pc->info, sizeof (GPPortInfo));

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index