diff options
author | Thomas Touhey <thomas@touhey.fr> | 2019-04-24 15:55:00 +0200 |
---|---|---|
committer | Thomas Touhey <thomas@touhey.fr> | 2019-04-24 15:55:00 +0200 |
commit | 2974766ae3e6eb176529563f09d7e34d7835047b (patch) | |
tree | 4c3c177f11d02fd3a3b9cf30c1fbc14a45d82255 /include/libtio | |
parent | 5ec90c550d806736af4be753c60601b7d7b1de37 (diff) |
Latest edits and fixes
Diffstat (limited to 'include/libtio')
-rw-r--r-- | include/libtio/stream.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/libtio/stream.h b/include/libtio/stream.h index 8f04340..d58fd41 100644 --- a/include/libtio/stream.h +++ b/include/libtio/stream.h @@ -376,7 +376,7 @@ TIO_BEGIN_DECLS /* Default stream serial settings utilities. */ -TIO_EXTERN int TIO_EXPORT tio_make_attrs +TIO_EXTERN int TIO_EXPORT tio_make_serial_attrs OF((tio_serial_attrs_t *tio__attrs, char const *tio__raw)); /* Open and close a stream. @@ -438,6 +438,8 @@ TIO_EXTERN void *TIO_EXPORT tio_get_cookie OF((tio_stream_t *tio__stream)); TIO_EXTERN int TIO_EXPORT tio_get_lasterr OF((tio_stream_t *tio__stream)); +TIO_EXTERN int TIO_EXPORT tio_get_parent + OF((tio_stream_t *tio__stream, tio_stream_t **tio__parent)); /* Read and write data from and to a stream. * Timeouts are in milliseconds (ms). */ @@ -488,6 +490,15 @@ TIO_EXTERN int TIO_EXPORT tio_set_timeouts tio_timeouts_t const *tio__read, tio_timeouts_t const *tio__write)); +/* Make USB-related operations. */ + +TIO_EXTERN int TIO_EXPORT tio_usb_send_bulk + OF((tio_stream_t *tio__stream, unsigned char const *tio__data, + size_t tio__size, unsigned int tio__timeout)); +TIO_EXTERN int TIO_EXPORT tio_usb_recv_bulk + OF((tio_stream_t *tio__stream, unsigned char *tio__buf, + size_t tio__size, unsigned int tio__timeout)); + /* Make an SCSI request. */ TIO_EXTERN int TIO_EXPORT tio_scsi_request |