Change synchronization code license to LGPLv2.1
[lttv.git] / lttv / lttv / sync / graph_functions.h
CommitLineData
467066ee 1/* This file is part of the Linux Trace Toolkit viewer
277e5b53 2 * Copyright (C) 2009, 2010 Benjamin Poirier <benjamin.poirier@polymtl.ca>
467066ee 3 *
277e5b53
BP
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 2.1 of the License, or (at
7 * your option) any later version.
467066ee 8 *
277e5b53
BP
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 * License for more details.
467066ee 13 *
277e5b53
BP
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
467066ee
BP
16 */
17
18#ifndef GRAPH_FUNCTIONS_H
19#define GRAPH_FUNCTIONS_H
20
21struct _SyncState;
22
66eaf2eb
BP
23typedef void (GraphVariableFunction)(struct _SyncState* const syncState, const
24 unsigned int i);
467066ee
BP
25typedef void (GraphFunction)(struct _SyncState* const syncState, const
26 unsigned int i, const unsigned int j);
27
28typedef struct
29{
66eaf2eb 30 GraphVariableFunction* writeVariables;
467066ee
BP
31 /* This is for graphs where the data on both axis is in the range of
32 * timestamps */
c6356aa7
BP
33 GraphFunction* writeTraceTraceForePlots;
34 GraphFunction* writeTraceTraceBackPlots;
467066ee
BP
35 GraphFunction* writeTraceTraceOptions;
36 /* This is for graphs where the data on the abscissa is in the range of
37 * timestamps and the ordinates is in the range of timestamp deltas */
c6356aa7
BP
38 GraphFunction* writeTraceTimeForePlots;
39 GraphFunction* writeTraceTimeBackPlots;
467066ee
BP
40 GraphFunction* writeTraceTimeOptions;
41} GraphFunctions;
42
43
1d597550
BP
44FILE* createGraphsDir(const char* const graphsDir);
45char* changeToGraphsDir(const char* const graphsDir);
467066ee
BP
46void writeGraphsScript(struct _SyncState* const syncState);
47
48#endif
This page took 0.025754 seconds and 4 git commands to generate.