6 void UpdateSensorLatency(
double time, gpointer cur_reading, GSList **history,
double latency, gpointer sensor_reading)
12 *history = g_slist_prepend(*history, cur_read);
14 GSList *
last = g_slist_last(*history);
16 *history = g_slist_remove_link(*history,
last);
20 last = g_slist_last(*history);
28 gpointer sensor_reading)
33 cur_read->
value = (
double *) g_memdup(cur_reading,
sizeof(
double));
34 *history = g_slist_prepend(*history, cur_read);
36 GSList *
last = g_slist_last(*history);
38 *history = g_slist_remove_link(*history,
last);
42 last = g_slist_last(*history);