/* This file is part of the Linux Trace Toolkit viewer
- * Copyright (C) 2009 Benjamin Poirier <benjamin.poirier@polymtl.ca>
+ * Copyright (C) 2009, 2010 Benjamin Poirier <benjamin.poirier@polymtl.ca>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License Version 2 as
- * published by the Free Software Foundation;
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 2.1 of the License, or (at
+ * your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ * License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- * MA 02111-1307, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EVENT_MATCHING_BROADCAST_H
totTransmit;
} MatchingStatsBroadcast;
+typedef struct
+{
+ /* This array is used for graphs. It contains file pointers to files where
+ * broadcast differential delay points are output.
+ *
+ * accuracyPoints is divided into three parts depending on the position of an
+ * element accuracyPoints[i][j]:
+ * Lower triangular part of the matrix
+ * i > j
+ * This contains the difference t[i] - t[j] between the times when
+ * a broadcast was received in trace i and trace j.
+ * Diagonal part of the matrix
+ * i = j
+ * This area is not allocated.
+ * Upper triangular part of the matrix
+ * i < j
+ * This area is not allocated.
+ */
+ FILE*** accuracyPoints;
+
+ // pointsNb[traceNum][traceNum] has the same structure as accuracyPoints
+ unsigned int** pointsNb;
+} MatchingGraphsBroadcast;
+
typedef struct
{
// Broadcast* pendingBroadcasts[dataStart]
GHashTable* pendingBroadcasts;
MatchingStatsBroadcast* stats;
+ MatchingGraphsBroadcast* graphs;
} MatchingDataBroadcast;
+void registerMatchingBroadcast();
+
#endif