}
/* lttvwindow_process_pending_requests
}
/* lttvwindow_process_pending_requests
+ *
+ * Process requests for parts of the trace from viewers.
+ *
+ * These requests are made by lttvwindow_events_request().
*
* This internal function gets called by g_idle, taking care of the pending
* requests. It is responsible for concatenation of time intervals and position
*
* This internal function gets called by g_idle, taking care of the pending
* requests. It is responsible for concatenation of time intervals and position
/* lttvwindowtraces_process_pending_requests
/* lttvwindowtraces_process_pending_requests
+ *
+ * Process the pending background computation requests
*
* This internal function gets called by g_idle, taking care of the pending
* requests.
*
* This internal function gets called by g_idle, taking care of the pending
* requests.
- * It removes all the requests than can be currently processed by the
+ * It removes all the requests that can be currently processed by the
* background computation algorithm for all the traces (list_in and list_out).
*
* Leaves the flag to in_progress or none.. depending if current or queue
* background computation algorithm for all the traces (list_in and list_out).
*
* Leaves the flag to in_progress or none.. depending if current or queue
/**
* Unregister the background computation hooks for a specific module.
*
/**
* Unregister the background computation hooks for a specific module.
*
- * It also removes all the requests than can be currently processed by the
+ * It also removes all the requests that can be currently processed by the
* background computation algorithm for all the traces (list_in and list_out).
*
* @param module_name A GQuark : the name of the module which computes the
* background computation algorithm for all the traces (list_in and list_out).
*
* @param module_name A GQuark : the name of the module which computes the
+/* before_request
+ *
+ * This gets executed just before an events request is executed
+ */
+
int before_request(void *hook_data, void *call_data)
{
EventsRequest *events_request = (EventsRequest*)hook_data;
int before_request(void *hook_data, void *call_data)
{
EventsRequest *events_request = (EventsRequest*)hook_data;