gboolean isadded; /**< Is the user addition completed? */
gboolean default_user; /**< Is it a default user? */
gboolean create_by_app; /**< Did app add this user information? */
- long last_presence_timestamp; /**< timestamp of last presence */
+ unsigned long long last_presence_timestamp; /**< timestamp of last presence */
} ua_user_info_s;
/**
* @post
*/
void _ua_set_user_last_presence_timestamp(ua_user_h user_handle,
- long timestamp);
+ unsigned long long timestamp);
/**
* @brief Checks whether a device exists in device list.
}
static void __ua_sensor_presence_detected(ua_monitor_s *monitor,
- ua_sensor_info_s *sensor_info, char *account, long timestamp,
+ ua_sensor_info_s *sensor_info, char *account, unsigned long long timestamp,
char *device_id)
{
FUNC_ENTRY;
}
void _ua_set_user_last_presence_timestamp(ua_user_h user_handle,
- long timestamp)
+ unsigned long long timestamp)
{
FUNC_ENTRY;
ua_user_info_s *user = (ua_user_info_s *)user_handle;
msg(" - ua_sensor_get_status() ret: [0x%X] [%s]",
ret, uat_get_error_str(ret));
}
- msgc("[%s] Sensor Status Changed -> %s",
- uat_get_sensor_bitmask_str(sensor),
- status == UA_SENSOR_PRESENCE ? "PRESENCE" : "ABSENCE");
-
ret = ua_sensor_get_bitmask(sensor_handle, &sensor);
if (UA_ERROR_NONE != ret) {
msg(" - ua_sensor_get_bitmask() ret: [0x%X] [%s]",
ret, uat_get_error_str(ret));
}
+ msgc("[%s] Sensor Status Changed -> %s",
+ uat_get_sensor_bitmask_str(sensor),
+ status == UA_SENSOR_PRESENCE ? "PRESENCE" : "ABSENCE");
+
ret = ua_sensor_get_timestamp(sensor_handle, ×tamp);
if (UA_ERROR_NONE != ret) {
msg(" - ua_sensor_get_timestamp() ret: [0x%X] [%s]",