summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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);