| 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 | |
| 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 | |
| 28 | typedef struct _LttvTraceset LttvTraceset; |
| 29 | |
| 30 | typedef struct _LttvTrace LttvTrace; |
| 31 | |
| 32 | /* Tracesets may be added to, removed from and their content listed. */ |
| 33 | |
| 34 | LttvTraceset *lttv_traceset_new(); |
| 35 | |
| 36 | char * lttv_traceset_name(LttvTraceset * s); |
| 37 | |
| 38 | LttvTrace *lttv_trace_new(LttTrace *t); |
| 39 | |
| 40 | LttvTraceset *lttv_traceset_copy(LttvTraceset *s_orig); |
| 41 | |
| 42 | LttvTraceset *lttv_traceset_load(const gchar *filename); |
| 43 | |
| 44 | gint lttv_traceset_save(LttvTraceset *s); |
| 45 | |
| 46 | void lttv_traceset_destroy(LttvTraceset *s); |
| 47 | |
| 48 | void lttv_trace_destroy(LttvTrace *t); |
| 49 | |
| 50 | void lttv_traceset_add(LttvTraceset *s, LttvTrace *t); |
| 51 | |
| 52 | unsigned lttv_traceset_number(LttvTraceset *s); |
| 53 | |
| 54 | LttvTrace *lttv_traceset_get(LttvTraceset *s, unsigned i); |
| 55 | |
| 56 | void lttv_traceset_remove(LttvTraceset *s, unsigned i); |
| 57 | |
| 58 | /* An attributes table is attached to the set and to each trace in the set. */ |
| 59 | |
| 60 | LttvAttribute *lttv_traceset_attribute(LttvTraceset *s); |
| 61 | |
| 62 | LttvAttribute *lttv_trace_attribute(LttvTrace *t); |
| 63 | |
| 64 | LttTrace *lttv_trace(LttvTrace *t); |
| 65 | |
| 66 | guint lttv_trace_get_ref_number(LttvTrace * t); |
| 67 | |
| 68 | #endif // TRACESET_H |
| 69 | |