std::string m_enable_node;
std::string m_interval_node;
- std::function<bool (void)> update_value;
+ std::function<bool(void)> update_value;
std::vector<uint32_t> event_ids;
return false;
if (proxi_event.value != PROXIMITY_NODE_STATE_FAR && proxi_event.value != PROXIMITY_NODE_STATE_NEAR) {
- _E("PROXIMITY_STATE Unknown: %d",proxi_event.value);
+ _E("PROXIMITY_STATE Unknown: %d", proxi_event.value);
return false;
}
std::string m_data_node;
std::string m_enable_node;
- std::function<bool (void)> update_value;
+ std::function<bool(void)> update_value;
std::vector<uint32_t> event_ids;
#endif
#define LOG_TAG "SENSOR"
-#define LOG_DUMP(fp, fmt, arg...) do { if (fp) fprintf(fp, fmt, ##arg); else _E(fmt, ##arg); } while(0)
+#define LOG_DUMP(fp, fmt, arg...) do { if (fp) fprintf(fp, fmt, ##arg); else _E(fmt, ##arg); } while (0)
#ifdef _DEBUG
#define DBG SLOGD
#else
-#define DBG(...) do{} while(0)
+#define DBG(...) do { } while (0)
#endif
#define ERR SLOGE
void system_state_handler::stop_listen_display_state()
{
-
}
void system_state_handler::poweroff_signal_handler(GDBusConnection *conn, const gchar *name, const gchar *path, const gchar *interface,
bool find = false;
for (int i = 0; i < input_info_len; ++i) {
-
prefix_size = input_info[i].prefix.size();
dir = opendir(input_info[i].dir_path.c_str());