~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/serial/serial-device.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-02-11 18:30:16 UTC
  • mfrom: (1.1.8 upstream) (9.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100211183016-f6n8usn3tzp0u6dp
Tags: 2.2.dfsg-1
* New upstream release, C64 DTV is included so update package description
  and add it to the menu.
* Drop patch fixing build failure with gcc-4.4 , applied upstream.
* Fix some lintian problems and clean up debian/rules .

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "vice.h"
28
28
 
29
 
#include "serial-device.h"
30
29
#include "serial.h"
31
30
 
32
31
 
56
55
 
57
56
    p->device = type;
58
57
}
59
 
 
60
 
unsigned int serial_device_fsimage_state_get(unsigned int unit)
61
 
{
62
 
    unsigned int type;
63
 
 
64
 
    if (unit < 8)
65
 
        return 1;
66
 
 
67
 
    type = serial_device_type_get(unit);
68
 
 
69
 
    if (type == SERIAL_DEVICE_REAL)
70
 
        return 0;
71
 
 
72
 
    if (type == SERIAL_DEVICE_RAW)
73
 
        return 0;
74
 
 
75
 
    return 1;
76
 
}
77
 
 
78
 
unsigned int serial_device_realdevice_state_get(unsigned int unit)
79
 
{
80
 
    unsigned int type;
81
 
 
82
 
    if (unit < 8)
83
 
        return 0;
84
 
 
85
 
    type = serial_device_type_get(unit);
86
 
 
87
 
    if (type == SERIAL_DEVICE_REAL)
88
 
        return 1;
89
 
 
90
 
    return 0;
91
 
}
92