Generate graphs of synchronization accuracy
[lttv.git] / lttv / lttv / sync / data_structures.c
index c4d4d966f31025db80058b69bfadb4762411f8ef..5983eaf6d0e36a64d9a73d067629828d66c54460 100644 (file)
@@ -640,3 +640,16 @@ void copyUDPEvent(const Event* const event, Event** const newEvent)
        memcpy((*newEvent)->event.udpEvent->datagramKey,
                event->event.udpEvent->datagramKey, sizeof(DatagramKey));
 }
+
+
+/*
+ * A GFunc for g_queue_foreach()
+ *
+ * Args:
+ *   data          Event*, event to add
+ *   user_data     GArray*, array to add to
+ */
+void gfAddEventToArray(gpointer data, gpointer user_data)
+{
+       g_array_append_val((GArray*) user_data, data);
+}
This page took 0.022137 seconds and 4 git commands to generate.