X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fser-base.h;h=2a30ba191fc8b9d317620595864642bfde1ee7af;hb=b3f4b80fba8bee1d1d2601424d0be0f2adcb0d79;hp=ba6849aa8d36f68ed5ad1bd7850e433a2a92dd08;hpb=0b30217134add051e159a192066a1e568ebd837f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ser-base.h b/gdb/ser-base.h index ba6849aa8d..2a30ba191f 100644 --- a/gdb/ser-base.h +++ b/gdb/ser-base.h @@ -1,6 +1,6 @@ /* Generic serial interface functions. - Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc. + Copyright (C) 2005-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -20,6 +20,8 @@ #ifndef SER_BASE_H #define SER_BASE_H +#include "serial.h" /* For serial_ttystate. */ + struct serial; struct ui_file; @@ -38,14 +40,12 @@ extern int ser_base_set_tty_state (struct serial *scb, extern void ser_base_print_tty_state (struct serial *scb, serial_ttystate ttystate, struct ui_file *stream); -extern int ser_base_noflush_set_tty_state (struct serial *scb, - serial_ttystate new_ttystate, - serial_ttystate old_ttystate); extern int ser_base_setbaudrate (struct serial *scb, int rate); -extern int ser_base_setstopbits (struct serial *scb, int rate); +extern int ser_base_setstopbits (struct serial *scb, int num); +extern int ser_base_setparity (struct serial *scb, int parity); extern int ser_base_drain_output (struct serial *scb); -extern int ser_base_write (struct serial *scb, const char *str, int len); +extern int ser_base_write (struct serial *scb, const void *buf, size_t count); extern void ser_base_async (struct serial *scb, int async_p); extern int ser_base_readchar (struct serial *scb, int timeout);