예제 #1
0
int
isSerialDevice (const char **identifier) {
#ifdef ALLOW_DOS_DEVICE_NAMES
  if (isDosDevice(*identifier, "COM")) return 1;
#endif /* ALLOW_DOS_DEVICE_NAMES */

  if (isQualifiedDevice(identifier, "serial")) return 1;
  if (isUnqualifiedDevice(*identifier)) return 1;
  return 0;
}
예제 #2
0
파일: device.c 프로젝트: BaJIeK/brltty
char *
getDevicePath (const char *device) {
  const char *directory = getDeviceDirectory();

#ifdef ALLOW_DOS_DEVICE_NAMES
  if (isDosDevice(device, NULL)) {
  //directory = NULL;
  }
#endif /* ALLOW_DOS_DEVICE_NAMES */

  return makePath(directory, device);
}