#include <lttv/stats.h>
#include <lttv/filter.h>
#include <lttvwindow/mainwindow.h>
+#include <lttvwindow/lttv_plugin.h>
/* Module Related API */
extern GQuark LTTV_VIEWER_CONSTRUCTORS;
/* constructor a the viewer */
-typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab);
+typedef GtkWidget* (*lttvwindow_viewer_constructor)(LttvPlugin *plugin);
/**
gconstpointer viewer);
+/**
+ * Function to see if there are events request pending.
+ *
+ * It tells if events requests are pending. Useful for checks in some events,
+ * i.e. detailed event list scrolling.
+ *
+ * @param tab the tab the viewer belongs to.
+ * @param viewer a pointer to the viewer data structure
+ * @return : TRUE is events requests are pending, else FALSE.
+ */
+
+gboolean lttvwindow_events_request_pending(Tab *tab);
+
+
+
+
/**
* 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
void events_request_free(EventsRequest *events_request);
-/* main_window_add_child_window
- *
- * Add the widget as a data to the main window : it will close a floating window
- * with its main window by calling the destroy_fct.
- */
-
-void main_window_add_child_window(Tab *tab, gpointer data,
- const gchar *name, GDestroyNotify descroy_fct);
-
+GtkWidget *main_window_get_widget(Tab *tab);
-void main_window_remove_child_window(Tab *tab,
- const gchar *name);
+void set_current_position(Tab *tab, const LttvTracesetContextPosition *pos);
#endif //LTTVWINDOW_H