spandsp
3.0.0
pseudo_terminals.h
1
/*
2
* SpanDSP - a series of DSP components for telephony
3
*
4
* pseudo_terminals.h - pseudo terminal handling.
5
*
6
* Written by Steve Underwood <steveu@coppice.org>
7
*
8
* Copyright (C) 2012 Steve Underwood
9
*
10
* All rights reserved.
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License version 2, as
14
* published by the Free Software Foundation.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
*/
25
26
#if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX) && !defined(WIN32)
27
#define USE_OPENPTY 1
28
#endif
29
30
struct
modem_s
31
{
32
int
slot;
33
int
master;
34
int
slave;
35
const
char
*stty;
36
char
devlink[128];
37
int
block_read;
38
int
block_write;
39
logging_state_t
logging;
40
};
41
42
typedef
struct
modem_s
modem_t
;
43
44
int
pseudo_terminal_close(
modem_t
*modem);
45
46
int
pseudo_terminal_create(
modem_t
*modem);
logging_state_s
Definition:
private/logging.h:34
modem_s
Definition:
pseudo_terminals.h:31
tests
pseudo_terminals.h
Generated by
1.9.4