diff options
author | Thomas "Cakeisalie5" Touhey <thomas@touhey.fr> | 2019-04-11 10:10:56 +0200 |
---|---|---|
committer | Thomas "Cakeisalie5" Touhey <thomas@touhey.fr> | 2019-04-11 10:10:56 +0200 |
commit | 5ec90c550d806736af4be753c60601b7d7b1de37 (patch) | |
tree | ec41a3e1f329cf8b3501be33ae31ddc43f3ce4f6 /include/libtio/native.h | |
parent | 07dac2acd79e420a56c3205882caa161f21184ed (diff) |
Added docs.
Diffstat (limited to 'include/libtio/native.h')
-rw-r--r-- | include/libtio/native.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/libtio/native.h b/include/libtio/native.h index 7191c9a..84aae12 100644 --- a/include/libtio/native.h +++ b/include/libtio/native.h @@ -15,6 +15,36 @@ TIO_EXTERN int TIO_EXPORT tio_open_unix_fd # endif +/* Open USB streams. */ + +# ifndef LIBTIO_DISABLED_LIBUSB +# include <libusb.h> + +TIO_EXTERN int TIO_EXPORT tio_open_libusb + OF((tio_stream_t **streamp, int bus, int addr)); +TIO_EXTERN int TIO_EXPORT tio_open_libusb_device + OF((tio_stream_t **streamp, libusb_device_handle *handle)); + +# endif + +/* Open standard FILE streams. */ + +# ifndef LIBTIO_DISABLED_FILE +# include <stdio.h> + +TIO_EXTERN int TIO_EXPORT tio_open_std + OF((tio_stream_t **tio__stream, + FILE *tio__fl, int tio__close)); + +TIO_EXTERN int TIO_EXPORT tio_open_stdout + OF((tio_stream_t **tio__stream)); +TIO_EXTERN int TIO_EXPORT tio_open_stderr + OF((tio_stream_t **tio__stream)); +TIO_EXTERN int TIO_EXPORT tio_open_stdin + OF((tio_stream_t **tio__stream)); + +# endif + TIO_END_DECLS TIO_END_NAMESPACE |