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

int gp_port_close ( GPPort port )

Close a port.

Parameters:
porta GPPort

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

Returns:
a gphoto2 error code

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

References 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);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index