~ubuntu-branches/ubuntu/jaunty/isdnutils/jaunty-proposed

« back to all changes in this revision

Viewing changes to vbox3/vboxgetty/libvboxmodem.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-09-04 08:20:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040904082020-g641px056lshw203
Tags: 1:3.3.0.20040728-2
* Put libcapi20 development files into new libcapi20-dev package,
  change libcapi20 soname to libcapi20-3, conflict with existing
  versions of packages depending on libcapi20-3 (closes: #268767).
* Update debconf translation strings (closes: #268716).
* Update french debconf translation (closes: #269666).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
** $Id: libvboxmodem.h,v 1.3 1998/08/31 10:43:04 michael Exp $
 
3
**
 
4
** Copyright 1996-1998 Michael 'Ghandi' Herold <michael@abadonna.mayn.de>
 
5
*/
 
6
 
 
7
#ifndef _VBOX_LIBMODEM_H
 
8
#define _VBOX_LIBMODEM_H 1
 
9
 
 
10
#include <unistd.h>
 
11
#include <errno.h>
 
12
 
 
13
/** Defines **************************************************************/
 
14
 
 
15
#define VBOXMODEM_BUFFER_SIZE   255                             /* Modem input buffer size      */
 
16
 
 
17
/** Variables ************************************************************/
 
18
 
 
19
typedef struct termios TIO;
 
20
 
 
21
struct vboxmodem
 
22
{
 
23
        int                             fd;
 
24
        unsigned char *devicename;
 
25
        unsigned char *input;
 
26
        int                             inputpos;
 
27
        int                             inputlen;
 
28
        int                             nocarrier;
 
29
        int                             nocarrierpos;
 
30
        unsigned char *nocarriertxt;
 
31
};
 
32
 
 
33
/** Internal junk ********************************************************/
 
34
 
 
35
#define set_modem_error(A)              strcpy(lastmodemerrmsg, A)
 
36
 
 
37
/** Prototypes ***********************************************************/
 
38
 
 
39
extern int                               vboxmodem_open(struct vboxmodem *, unsigned char *);
 
40
extern int                               vboxmodem_close(struct vboxmodem *);
 
41
extern unsigned char *vboxmodem_error(void);
 
42
extern int                               vboxmodem_raw_read(struct vboxmodem *, unsigned char *, int);
 
43
extern size_t                    vboxmodem_raw_write(struct vboxmodem *, unsigned char *, int);
 
44
extern int                               vboxmodem_set_termio(struct vboxmodem *, TIO *);
 
45
extern int                               vboxmodem_get_termio(struct vboxmodem *, TIO *);
 
46
 
 
47
#endif /* _VBOX_LIBMODEM_H */