#define _CFV_PRIVATE_H
-struct _ControlFlowData {
-
- GtkWidget *top_widget;
- Tab *tab;
-
- GtkWidget *box; /* box that contains the hpaned. necessary for it to work */
- GtkWidget *h_paned;
-
- ProcessList *process_list;
-
- Drawing_t *drawing;
- GtkAdjustment *v_adjust ;
-
- /* Shown events information */
-// TimeWindow time_window;
-// LttTime current_time;
-
- //guint currently_Selected_Event ;
- guint number_of_process;
- guint background_info_waiting; /* Number of background requests waited for
- in order to have all the info ready. */
-
-} ;
-
#endif //_CFV_PRIVATE_H
#include <lttvwindow/mainwindow.h>
#include "processlist.h"
+
+struct _ControlFlowData {
+
+ GtkWidget *top_widget;
+ Tab *tab;
+
+ GtkWidget *box; /* box that contains the hpaned. necessary for it to work */
+ GtkWidget *h_paned;
+
+ ProcessList *process_list;
+
+ Drawing_t *drawing;
+ GtkAdjustment *v_adjust ;
+
+ /* Shown events information */
+// TimeWindow time_window;
+// LttTime current_time;
+
+ //guint currently_Selected_Event ;
+ guint number_of_process;
+ guint background_info_waiting; /* Number of background requests waited for
+ in order to have all the info ready. */
+
+} ;
+
+
+
+
typedef struct _ControlFlowData ControlFlowData;
/* Control Flow Data constructor */
}
+/**
+ * Function to get the current time interval shown on the current tab.
+ * It will be called by a viewer's hook function to update the
+ * shown time interval of the viewer and also be called by the constructor
+ * of the viewer.
+ * @param tab viewer's tab
+ * @return time window.
+ */
+
+TimeWindow lttvwindow_get_time_window(Tab *tab)
+{
+ return tab->time_window;
+}
+
/**
* Function to get the current time/event of the current tab.
* @return time window.
*/
-static inline TimeWindow lttvwindow_get_time_window(Tab *tab)
-{
- return tab->time_window;
-}
+TimeWindow lttvwindow_get_time_window(Tab *tab);
/**