aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-plot-task.c')
-rw-r--r--trace-plot-task.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/trace-plot-task.c b/trace-plot-task.c
index 803d89b..096b792 100644
--- a/trace-plot-task.c
+++ b/trace-plot-task.c
@@ -739,12 +739,10 @@ void graph_plot_task_plotted(struct graph_info *ginfo,
739 } 739 }
740} 740}
741 741
742void graph_tasks_update_callback(enum graph_plot_type type, 742void graph_plot_task_update_callback(gboolean accept,
743 plot_task_cb plot_cb, 743 gint *selected,
744 gboolean accept, 744 gint *non_select,
745 gint *selected, 745 gpointer data)
746 gint *non_select,
747 gpointer data)
748{ 746{
749 struct graph_info *ginfo = data; 747 struct graph_info *ginfo = data;
750 struct task_plot_info *task_info; 748 struct task_plot_info *task_info;
@@ -770,7 +768,7 @@ void graph_tasks_update_callback(enum graph_plot_type type,
770 */ 768 */
771 for (i = ginfo->plots - 1; i >= 0; i--) { 769 for (i = ginfo->plots - 1; i >= 0; i--) {
772 plot = ginfo->plot_array[i]; 770 plot = ginfo->plot_array[i];
773 if (plot->type != type) 771 if (plot->type != PLOT_TYPE_TASK)
774 continue; 772 continue;
775 task_info = plot->private; 773 task_info = plot->private;
776 774
@@ -798,20 +796,11 @@ void graph_tasks_update_callback(enum graph_plot_type type,
798 796
799 /* Now add any plots that need to be added */ 797 /* Now add any plots that need to be added */
800 for (i = 0; i < select_size; i++) 798 for (i = 0; i < select_size; i++)
801 plot_cb(ginfo, selected[i], ginfo->plots); 799 graph_plot_task(ginfo, selected[i], ginfo->plots);
802 800
803 trace_graph_refresh(ginfo); 801 trace_graph_refresh(ginfo);
804} 802}
805 803
806void graph_plot_task_update_callback(gboolean accept,
807 gint *selected,
808 gint *non_select,
809 gpointer data)
810{
811 graph_tasks_update_callback(PLOT_TYPE_TASK, graph_plot_task,
812 accept, selected, non_select, data);
813}
814
815void graph_plot_init_tasks(struct graph_info *ginfo) 804void graph_plot_init_tasks(struct graph_info *ginfo)
816{ 805{
817 struct task_plot_info *task_info; 806 struct task_plot_info *task_info;