From bfc20a0ee14c841c75eeb6878dc5e3eced7d8e2d Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Fri, 10 Jan 2020 14:50:07 -0600 Subject: Refectoring --- include/Device/Device.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 capabilityList; - std::map deviceInfoList = {{"deviceId", ""},{"hardwareVersion", ""}, + static std::map 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); -- cgit v1.2.3