static void openGraphDataFiles(SyncState* const syncState);
static void writeAccuracyPoints(MatchingGraphsBroadcast* graphs, const
Broadcast* const broadcast);
-void gfAddToArray(gpointer data, gpointer user_data);
static void closeGraphDataFiles(SyncState* const syncState);
.finalizeMatching= &finalizeMatchingBroadcast,
.printMatchingStats= &printMatchingStatsBroadcast,
.graphFunctions= {
- .writeTraceTimePlots= &writeMatchingGraphsPlotsBroadcast,
+ .writeTraceTimeForePlots= &writeMatchingGraphsPlotsBroadcast,
}
};
unsigned int eventNb= broadcast->events->length;
events= g_array_sized_new(FALSE, FALSE, sizeof(Event*), eventNb);
- g_queue_foreach(broadcast->events, &gfAddToArray, events);
+ g_queue_foreach(broadcast->events, &gfAddEventToArray, events);
for (i= 0; i < eventNb; i++)
{
}
}
}
-}
-
-/*
- * A GFunc for g_queue_foreach()
- *
- * Args:
- * data Event*, event to add
- * user_data GArray*, array to add to
- */
-void gfAddToArray(gpointer data, gpointer user_data)
-{
- g_array_append_val((GArray*) user_data, data);
+ g_array_free(events, TRUE);
}
{
fprintf(syncState->graphsStream,
"\t\"matching_broadcast-%03d_and_%03d.data\" "
- "title \"Broadcast delays\" with points "
+ "title \"Broadcast differential delays\" with points "
"linecolor rgb \"black\" pointtype 6 pointsize 2, \\\n", i,
j);
}