OpenCPN Partial API docs
Loading...
Searching...
No Matches
usb_devices.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2011 Alec Leamas *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
8
* *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
13
* *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, see <https://www.gnu.org/licenses/>. *
16
**************************************************************************/
17
24
#ifndef USB_DEVICES_H
25
#define USB_DEVICES_H
26
27
#ifdef HAVE_LIBUSB_10
28
#include "
model/linux_devices.h
"
29
#else
30
static
bool
inline
IsDonglePermissionsWrong
() {
return
false
; }
31
static
bool
inline
IsDevicePermissionsOk
(
const
char
*) {
return
true
; }
32
#endif
33
34
#endif
IsDevicePermissionsOk
bool IsDevicePermissionsOk(const char *path)
Check device path permissions.
Definition
linux_devices.cpp:159
IsDonglePermissionsWrong
bool IsDonglePermissionsWrong()
Return true if an existing dongle cannot be accessed.
Definition
linux_devices.cpp:153
linux_devices.h
Implement linux_devices.h – low level udev usb device management (Linux only).
gui
include
gui
usb_devices.h
Generated on Thu Oct 30 2025 02:47:14 for OpenCPN Partial API docs by
1.9.8