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

int gp_port_flush ( GPPort port,
int  direction 

Flush data on serial port.

port a GPPort
direction the direction of the flush
Flushes the serial output or input (depending on direction) of the serial port.

a gphoto2 error code

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

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

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

      CHECK_NULL (port);

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

        return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index