Remove unused g_info definitions
[lttv.git] / lttv / lttv / sync / data_structures.c
index c4d4d966f31025db80058b69bfadb4762411f8ef..6bdf0b257a697aea73b2b9536d4e09df895f91ad 100644 (file)
 #include "data_structures.h"
 
 
-#ifndef g_info
-#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
-#endif
-
 // TCP sequence numbers use clock arithmetic, these comparison functions take
 // that into account
 #define SEQ_LT(a,b)     ((int32_t)((a)-(b)) < 0)
@@ -640,3 +636,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.023842 seconds and 4 git commands to generate.