gboolean emit,
guint *updated_timestamp,
LocationPosition **prev_pos,
- LocationAccuracy **prev_acc,
GList *prev_bound,
ZoneStatus *zone_status,
const LocationPosition *pos,
if (!pos->timestamp) return;
if (*prev_pos) location_position_free (*prev_pos);
- if (*prev_acc) location_accuracy_free (*prev_acc);
*prev_pos = location_position_copy(pos);
- *prev_acc = location_accuracy_copy(acc);
LOCATION_LOGD("timestamp[%d], lat [%f], lon [%f]", (*prev_pos)->timestamp, (*prev_pos)->latitude, (*prev_pos)->longitude);
if (emit && pos->timestamp - *updated_timestamp >= interval) {
gboolean emit,
guint *updated_timestamp,
LocationVelocity **prev_vel,
+ LocationAccuracy **prev_acc,
const LocationVelocity *vel,
const LocationAccuracy *acc)
{
if (!vel->timestamp) return;
if (*prev_vel) location_velocity_free (*prev_vel);
+ if (*prev_acc) location_accuracy_free (*prev_acc);
+
*prev_vel = location_velocity_copy (vel);
+ *prev_acc = location_accuracy_copy (acc);
LOCATION_LOGD("timestamp[%d]", (*prev_vel)->timestamp);
if (emit && vel->timestamp - *updated_timestamp >= interval) {