X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2Ftraceset.h;h=9d29d7a388eee3e8db55431715c5dce3a7b8429f;hb=d0cd7f0949c2fd90d5a39361b192c9b2d96bf5d4;hp=65fedbd814d184db3521d832218d1c73896022e2;hpb=ba576a781d5a1020ff7202ac9a959c9f4a0c7a4c;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/traceset.h b/ltt/branches/poly/include/lttv/traceset.h index 65fedbd8..9d29d7a3 100644 --- a/ltt/branches/poly/include/lttv/traceset.h +++ b/ltt/branches/poly/include/lttv/traceset.h @@ -1,3 +1,21 @@ +/* This file is part of the Linux Trace Toolkit viewer + * Copyright (C) 2003-2004 Michel Dagenais + * + * 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 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. + * + * 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. + */ + #ifndef TRACESET_H #define TRACESET_H @@ -9,29 +27,43 @@ typedef struct _LttvTraceset LttvTraceset; +typedef struct _LttvTrace LttvTrace; /* Tracesets may be added to, removed from and their content listed. */ LttvTraceset *lttv_traceset_new(); +char * lttv_traceset_name(LttvTraceset * s); + +LttvTrace *lttv_trace_new(LttTrace *t); + +LttvTraceset *lttv_traceset_copy(LttvTraceset *s_orig); + +LttvTraceset *lttv_traceset_load(const gchar *filename); + +gint lttv_traceset_save(LttvTraceset *s); + void lttv_traceset_destroy(LttvTraceset *s); -void lttv_traceset_add(LttvTraceset *s, LttTrace *t); +void lttv_trace_destroy(LttvTrace *t); + +void lttv_traceset_add(LttvTraceset *s, LttvTrace *t); unsigned lttv_traceset_number(LttvTraceset *s); -LttTrace *lttv_traceset_get(LttvTraceset *s, unsigned i); +LttvTrace *lttv_traceset_get(LttvTraceset *s, unsigned i); void lttv_traceset_remove(LttvTraceset *s, unsigned i); - /* An attributes table is attached to the set and to each trace in the set. */ LttvAttribute *lttv_traceset_attribute(LttvTraceset *s); -LttvAttribute *lttv_traceset_trace_attribute(LttvTraceset *s, - unsigned i); +LttvAttribute *lttv_trace_attribute(LttvTrace *t); + +LttTrace *lttv_trace(LttvTrace *t); +guint lttv_trace_get_ref_number(LttvTrace * t); #endif // TRACESET_H