X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2Fcommon.h;h=a3e557f3b531a27e9250e7564fb534648ae9f89e;hb=dd025f915d9b3a3e587578e97b3738115193c180;hp=1af0790c4691e77bf600583d871b226d03bc6163;hpb=82c09edfd609f5699880fea68a399c4d8c50f952;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/common.h b/ltt/branches/poly/include/lttv/common.h index 1af0790c..a3e557f3 100644 --- a/ltt/branches/poly/include/lttv/common.h +++ b/ltt/branches/poly/include/lttv/common.h @@ -1,23 +1,43 @@ +/* This file is part of the Linux Trace Toolkit viewer + * Copyright (C) 2003-2004 Xiangxiu Yang + * + * 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 COMMON_H #define COMMON_H #include #include #include +#include + +#define MAX_NUMBER_EVENT "MAX_NUMBER_EVENT" +#define TRACESET_TIME_SPAN "TRACESET_TIME_SPAN" -typedef struct _mainWindow mainWindow; -typedef struct _systemView systemView; -typedef struct _tab tab; -typedef struct _TimeInterval TimeInterval; +typedef struct _MainWindow MainWindow; +typedef struct _Tab Tab; /* constructor of the viewer */ -typedef GtkWidget * (*lttv_constructor)(mainWindow * main_window); +typedef GtkWidget * (*lttv_constructor)(MainWindow * main_window, + LttvTracesetSelector * s, char *key); typedef lttv_constructor view_constructor; -struct _TimeInterval{ - LttTime startTime; - LttTime endTime; -}; - +typedef struct _TimeWindow { + LttTime start_time; + LttTime time_width; +} TimeWindow; #endif // COMMON_H