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

int gp_port_close ( GPPort port  ) 

Close a port.

port a GPPort
Closes a port temporarily. It can afterwards be reopened using gp_port_open.

a gphoto2 error code

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

References CHECK_NULL, CHECK_RESULT, _GPPortOperations::close, gp_log(), GP_LOG_DEBUG, GP_OK, _GPPortPrivateCore::ops, and _GPPort::pc.

Referenced by gp_camera_exit(), gp_camera_init(), and gp_port_free().

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

      CHECK_NULL (port);
      CHECK_INIT (port);

      CHECK_SUPP (port, "close", port->pc->ops->close);
        CHECK_RESULT (port->pc->ops->close(port));

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index