~ubuntu-branches/ubuntu/quantal/brltty/quantal-proposed

« back to all changes in this revision

Viewing changes to Programs/serial_termios.h

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2012-06-08 14:56:32 UTC
  • mfrom: (2.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120608145632-xr5cg5x2is0mo8ng
Tags: 4.4-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Add brltty-setup, installed in both the udeb and the normal system.
  - Add initramfs integration to run brltty-setup if necessary before
    usplash starts.
  - Add ubiquity integration to propagate any brltty configuration to the
    target system.
  - Add udev rules and /lib/brltty/brltty.sh to the normal (non-udeb)
    package as well.
  - Enable brltty if /etc/default/brltty has RUN_BRLTTY=yes, which is set
    by the installer if brltty is configured; add a NEWS entry for
    upgraders.
  - Don't install /etc/brltty.conf in the package
  - Install udev rules with the same name (85-brltty.rules) in the udeb as
    in the deb.
  - Remove the dh-lisp build-dependency, remove the cl-brlapi package, and
    adjust the brltty package description accordingly. dh-lisp is not
    in main.
  - Build for all python versions (python 2.6), not just the current
    version.
  - Enable brltty at startup on the target system if the alternate installer
    is used.
  - Create separate rules file for the brltty deb, with the rules now
    pointing to a separate script
  - Add gbp.conf file for git buildpackage
  - Do not build the at-spi driver, the legacy at-spi stack is no longer in
    the archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * BRLTTY - A background process providing access to the console screen (when in
 
3
 *          text mode) for a blind person using a refreshable braille display.
 
4
 *
 
5
 * Copyright (C) 1995-2012 by The BRLTTY Developers.
 
6
 *
 
7
 * BRLTTY comes with ABSOLUTELY NO WARRANTY.
 
8
 *
 
9
 * This is free software, placed under the terms of the
 
10
 * GNU General Public License, as published by the Free Software
 
11
 * Foundation; either version 2 of the License, or (at your option) any
 
12
 * later version. Please see the file LICENSE-GPL for details.
 
13
 *
 
14
 * Web Page: http://mielke.cc/brltty/
 
15
 *
 
16
 * This software is maintained by Dave Mielke <dave@mielke.cc>.
 
17
 */
 
18
 
 
19
#ifndef BRLTTY_INCLUDED_SERIAL_TERMIOS
 
20
#define BRLTTY_INCLUDED_SERIAL_TERMIOS
 
21
 
 
22
#include <termios.h>
 
23
#include <sys/ioctl.h>
 
24
 
 
25
#ifdef HAVE_SYS_MODEM_H
 
26
#include <sys/modem.h>
 
27
#endif /* HAVE_SYS_MODEM_H */
 
28
 
 
29
#ifdef __cplusplus
 
30
extern "C" {
 
31
#endif /* __cplusplus */
 
32
 
 
33
typedef speed_t SerialSpeed;
 
34
typedef struct termios SerialAttributes;
 
35
 
 
36
typedef int SerialLines;
 
37
#define SERIAL_LINE_RTS TIOCM_RTS
 
38
#define SERIAL_LINE_DTR TIOCM_DTR
 
39
#define SERIAL_LINE_CTS TIOCM_CTS
 
40
#define SERIAL_LINE_DSR TIOCM_DSR
 
41
#define SERIAL_LINE_RNG TIOCM_RNG
 
42
#define SERIAL_LINE_CAR TIOCM_CAR
 
43
 
 
44
typedef struct {
 
45
  char dummy;
 
46
} SerialPackageFields;
 
47
 
 
48
#ifdef __cplusplus
 
49
}
 
50
#endif /* __cplusplus */
 
51
 
 
52
#endif /* BRLTTY_INCLUDED_SERIAL_TERMIOS */