summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2020-01-10 14:50:07 -0600
committerHarsh Sharma <harsh.sharma@multitech.com>2020-01-10 14:50:07 -0600
commitbfc20a0ee14c841c75eeb6878dc5e3eced7d8e2d (patch)
treef406cbff1ee59fb944733f3ea10a09e018ce7ed6 /include
parentb69c7514fbad36e25dbf3ea263eb49f1f28d3653 (diff)
downloadmts-io-sysfs-bfc20a0ee14c841c75eeb6878dc5e3eced7d8e2d.tar.gz
mts-io-sysfs-bfc20a0ee14c841c75eeb6878dc5e3eced7d8e2d.tar.bz2
mts-io-sysfs-bfc20a0ee14c841c75eeb6878dc5e3eced7d8e2d.zip
Refectoring
Diffstat (limited to 'include')
-rw-r--r--include/Device/Device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Device/Device.h b/include/Device/Device.h
index 86e284f..f04be48 100644
--- a/include/Device/Device.h
+++ b/include/Device/Device.h
@@ -17,7 +17,7 @@ class Device {
rapidjson::Document::AllocatorType& alloc = deviceInfo.GetAllocator();
rapidjson::Document::AllocatorType& accessoryCardsAlloc = accessoryCards.GetAllocator();
static std::map<std::string, bool> capabilityList;
- std::map<std::string, std::string> deviceInfoList = {{"deviceId", ""},{"hardwareVersion", ""},
+ static std::map<std::string, std::string> deviceInfoList = {{"deviceId", ""},{"hardwareVersion", ""},
{"imei", ""},{"macAddress", "00:00:00:00:00:00"},{"macBluetooth", "00:00:00:00:00:00"},
{"macWifi", "00:00:00:00:00:00"},{"productId", ""},{"uuid", ""},{"vendorId", ""}};
@@ -85,6 +85,8 @@ class Device {
Device();
void getSystemTreeJson(const char * dir_name);
void init();
+ bool isAccessoryCard(const char * d_name, const char * dir_name);
+ bool isValidDirectory(const struct dirent * entry, std::string fullPath, const char * d_name);
void load();
void logInfo(std::string info);
void logError(std::string info);