if(parent){
if(parent->current_tab){
tmp_tab->traceset_info->traceset =
- lttv_traceset_new();
- //FIXME lttv_traceset_copy(parent->current_tab->traceset_info->traceset);
+ lttv_traceset_copy(parent->current_tab->traceset_info->traceset);
}else{
tmp_tab->traceset_info->traceset = lttv_traceset_new();
}
}else{ /* Initial window */
if(mw_data->current_tab){
tmp_tab->traceset_info->traceset =
- lttv_traceset_new();
- //FIXME lttv_traceset_copy(mw_data->current_tab->traceset_info->traceset);
+ lttv_traceset_copy(mw_data->current_tab->traceset_info->traceset);
}else{
tmp_tab->traceset_info->traceset = lttv_traceset_new();
/* Add the command line trace */
}
}
}
-
+
+//FIXME : this is g_debug level
+ lttv_attribute_write_xml(
+ lttv_traceset_attribute(tmp_tab->traceset_info->traceset),
+ stdout,
+ 0, 4);
+ fflush(stdout);
+
+
//FIXME copy not implemented in lower level
tmp_tab->traceset_info->traceset_context =
g_object_new(LTTV_TRACESET_STATS_TYPE, NULL);
*/
void lttvwindow_events_request(Tab *tab,
- const EventsRequest *events_request)
+ EventsRequest *events_request)
{
- EventsRequest *alloc = g_new(EventsRequest,1);
- *alloc = *events_request;
-
- tab->events_requests = g_slist_append(tab->events_requests, alloc);
+ tab->events_requests = g_slist_append(tab->events_requests, events_request);
if(!tab->events_request_pending)
{
*
* end_time, end_position and num_events can all be defined. The first one
* to occur will be used as end criterion.
+ *
+ * The events_request memory will be managed by the main window once its
+ * pointer is passed by this function.
*
* @param tab the tab the viewer belongs to.
* @param events_requested Details about the event request.
*/
void lttvwindow_events_request(Tab *tab,
- const EventsRequest *events_request);
+ EventsRequest *events_request);
/**
* Function to remove data requests related to a viewer.