Basic babeltrace integration
[lttv.git] / lttv / lttv / traceset.h
CommitLineData
9c312311 1/* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Michel Dagenais
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
dc877563 19#ifndef TRACESET_H
20#define TRACESET_H
21
22#include <lttv/attribute.h>
23#include <lttv/hook.h>
24#include <ltt/ltt.h>
25
26/* A traceset is a set of traces to be analyzed together. */
27
ba576a78 28typedef struct _LttvTraceset LttvTraceset;
dc877563 29
308711e5 30typedef struct _LttvTrace LttvTrace;
dc877563 31
922581a4
YB
32struct bt_context;
33
dc877563 34/* Tracesets may be added to, removed from and their content listed. */
35
36LttvTraceset *lttv_traceset_new();
37
49bf71b5 38char * lttv_traceset_name(LttvTraceset * s);
39
308711e5 40LttvTrace *lttv_trace_new(LttTrace *t);
41
f7afe191 42LttvTraceset *lttv_traceset_copy(LttvTraceset *s_orig);
43
44LttvTraceset *lttv_traceset_load(const gchar *filename);
45
922581a4
YB
46struct bt_context *lttv_traceset_get_context(LttvTraceset *s);
47
48
f7afe191 49gint lttv_traceset_save(LttvTraceset *s);
50
dc877563 51void lttv_traceset_destroy(LttvTraceset *s);
52
308711e5 53void lttv_trace_destroy(LttvTrace *t);
54
55void lttv_traceset_add(LttvTraceset *s, LttvTrace *t);
dc877563 56
57unsigned lttv_traceset_number(LttvTraceset *s);
58
308711e5 59LttvTrace *lttv_traceset_get(LttvTraceset *s, unsigned i);
dc877563 60
61void lttv_traceset_remove(LttvTraceset *s, unsigned i);
62
dc877563 63/* An attributes table is attached to the set and to each trace in the set. */
64
65LttvAttribute *lttv_traceset_attribute(LttvTraceset *s);
66
308711e5 67LttvAttribute *lttv_trace_attribute(LttvTrace *t);
68
69LttTrace *lttv_trace(LttvTrace *t);
dc877563 70
2176f952 71guint lttv_trace_get_ref_number(LttvTrace * t);
72
a43d67ba 73guint lttv_trace_ref(LttvTrace * t);
74
75guint lttv_trace_unref(LttvTrace * t);
76
dc877563 77#endif // TRACESET_H
78
This page took 0.069762 seconds and 4 git commands to generate.