Store graph callbacks in a structure
[lttv.git] / lttv / lttv / sync / graph_functions.h
1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2009 Benjamin Poirier <benjamin.poirier@polymtl.ca>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
17 */
18
19 #ifndef GRAPH_FUNCTIONS_H
20 #define GRAPH_FUNCTIONS_H
21
22 struct _SyncState;
23
24 typedef void (GraphFunction)(struct _SyncState* const syncState, const
25 unsigned int i, const unsigned int j);
26
27 typedef struct
28 {
29 /* This is for graphs where the data on both axis is in the range of
30 * timestamps */
31 GraphFunction* writeTraceTracePlots;
32 GraphFunction* writeTraceTraceOptions;
33 /* This is for graphs where the data on the abscissa is in the range of
34 * timestamps and the ordinates is in the range of timestamp deltas */
35 GraphFunction* writeTraceTimePlots;
36 GraphFunction* writeTraceTimeOptions;
37 } GraphFunctions;
38
39
40 void writeGraphsScript(struct _SyncState* const syncState);
41
42 #endif
This page took 0.032016 seconds and 4 git commands to generate.