/*************************************************************************** * * * LIBDSK: General floppy and diskimage access library * * Copyright (C) 2001,2005 John Elliott <jce@seasip.demon.co.uk> * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Library General Public * * License as published by the Free Software Foundation; either * * version 2 of the License, or (at your option) any later version. * * * * This library 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 * * Library General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this library; if not, write to the Free * * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA * * * ***************************************************************************/ #ifdef HAVE_TERMIOS_H typedef struct termios_remote_data { REMOTE_DATA super; int infd; int outfd; char *filename; int baud; int crtscts; /* We won't allow changes in framing. LibDsk needs an 8-bit * channel so force 8, N, 1 */ } TERMIOS_REMOTE_DATA; extern REMOTE_CLASS rpc_termios; dsk_err_t tios_open(DSK_PDRIVER pDriver, const char *name, char *nameout); dsk_err_t tios_close(DSK_PDRIVER pDriver); dsk_err_t tios_call(DSK_PDRIVER pDriver, unsigned char *input, int inp_len, unsigned char *output, int *out_len); #endif /* def HAVE_TERMIOS_H */