79 lines
2.4 KiB
C
79 lines
2.4 KiB
C
/* ****************************************************************************
|
|
* stream/builtin/builtin.h -- stream builtins.
|
|
* Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
|
|
*
|
|
* This file is part of libcasio.
|
|
* libcasio is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation; either version 3.0 of the License,
|
|
* or (at your option) any later version.
|
|
*
|
|
* libcasio is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
* See the GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with libcasio; if not, see <http://www.gnu.org/licenses/>.
|
|
* ************************************************************************* */
|
|
#ifndef LOCAL_STREAM_BUILTIN_H
|
|
# define LOCAL_STREAM_BUILTIN_H 2018051601
|
|
# include "../../internals.h"
|
|
|
|
/* ---
|
|
* List serial devices.
|
|
* --- */
|
|
|
|
/* List serial devices on Linux. */
|
|
|
|
# ifndef LIBCASIO_DISABLED_LINUX_SERIAL
|
|
CASIO_EXTERN int CASIO_EXPORT casio_iter_linux_serial
|
|
OF((casio_iter_t **casio__iterp));
|
|
# endif
|
|
|
|
/* List serial devices on MacOS/OS X. */
|
|
|
|
# ifndef LIBCASIO_DISABLED_MAC_SERIAL
|
|
CASIO_EXTERN int CASIO_EXPORT casio_iter_mac_serial
|
|
OF((casio_iter_t **casio__iterp));
|
|
# endif
|
|
|
|
/* List serial devices on Microsoft Windows. */
|
|
|
|
# ifndef LIBCASIO_DISABLED_WINDOWS
|
|
CASIO_EXTERN int CASIO_EXPORT casio_iter_windows_serial
|
|
OF((casio_iter_t **casio__iterp));
|
|
# endif
|
|
|
|
/* ---
|
|
* Open a serial stream.
|
|
* --- */
|
|
|
|
/* Open a serial stream using the STREAMS interface. */
|
|
|
|
# ifndef LIBCASIO_DISABLED_STREAMS
|
|
CASIO_EXTERN int CASIO_EXPORT casio_open_streams_serial
|
|
OF((casio_stream_t **casio__streamp, char const *casio__path,
|
|
casio_streamattrs_t const *casio__attrs));
|
|
# endif
|
|
|
|
/* ---
|
|
* Open a USB stream.
|
|
* --- */
|
|
|
|
/* Open a USB stream using libusb. */
|
|
|
|
# ifndef LIBCASIO_DISABLED_LIBUSB
|
|
CASIO_EXTERN int CASIO_EXPORT casio_open_libusb_usb
|
|
OF((casio_stream_t **casio__streamp, int casio__bus, int casio__address));
|
|
# endif
|
|
|
|
/* Open a USB stream using the Windows API. */
|
|
|
|
# ifndef LIBCASIO_DISABLED_WINDOWS
|
|
CASIO_EXTERN int CASIO_EXPORT casio_open_windows_usb
|
|
OF((casio_stream_t **casio__streamp, int casio__bus, int casio__address));
|
|
# endif
|
|
|
|
#endif /* LOCAL_STREAM_BUILTIN_H */
|