OpenCPN Partial API docs
|
Implement linux_devices.h. More...
#include "config.h"
#include <string>
#include <sstream>
#include <iomanip>
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <libusb.h>
#include "model/linux_devices.h"
#include "model/logger.h"
#include "model/ocpn_utils.h"
Go to the source code of this file.
Classes | |
struct | usbdata |
Typedefs | |
typedef struct usbdata | usbdata |
Functions | |
bool | IsDonglePermissionsWrong () |
Return true if an existing dongle cannot be accessed. | |
bool | IsDevicePermissionsOk (const char *path) |
Check device path permissions. More... | |
std::string | MakeUdevLink () |
Get next available udev rule base name. More... | |
std::string | GetDongleRule () |
std::string | GetDeviceRule (const char *device, const char *symlink) |
Get device udev rule. More... | |
Implement linux_devices.h.
Definition in file linux_devices.cpp.
std::string GetDeviceRule | ( | const char * | device, |
const char * | symlink | ||
) |
Get device udev rule.
device | Complete device path |
symlink | As returned by MakeUdevLink() |
Definition at line 301 of file linux_devices.cpp.
std::string GetDongleRule | ( | ) |
Definition at line 289 of file linux_devices.cpp.
bool IsDevicePermissionsOk | ( | const char * | path | ) |
Check device path permissions.
path | complete device path |
Definition at line 156 of file linux_devices.cpp.
std::string MakeUdevLink | ( | ) |
Get next available udev rule base name.
Definition at line 244 of file linux_devices.cpp.