From: compudj Date: Thu, 27 May 2004 13:33:03 +0000 (+0000) Subject: corrected eventrequst so it is in the main window, given to viewers as hook_data... X-Git-Tag: v0.12.20~2925 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=40e5a13399fc10d914b3d54e374cec8bc0d78dca;p=lttv.git corrected eventrequst so it is in the main window, given to viewers as hook_data : there can be many eventrequests from the same viewer. git-svn-id: http://ltt.polymtl.ca/svn@564 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/doc/developer/lttvwindow_events_delivery.txt b/ltt/branches/poly/doc/developer/lttvwindow_events_delivery.txt index 05444b3e..081a9805 100644 --- a/ltt/branches/poly/doc/developer/lttvwindow_events_delivery.txt +++ b/ltt/branches/poly/doc/developer/lttvwindow_events_delivery.txt @@ -166,13 +166,14 @@ each viewer through process traceset. - lttvwindow_events_request -It adds the a pointer to the EventsRequest struct to the array of time requests +It adds the an EventsRequest struct to the array of time requests pending and registers a pending request for the next g_idle if none is -registered. The viewer has to keep a reference to this structure in its own -instance data structure. Only the stop_flag can be changed by the viewer -through the event hooks. +registered. The viewer can access this structure during the read as its +hook_data. Only the stop_flag can be changed by the viewer through the +event hooks. typedef struct _EventsRequest { + gpointer viewer_data; LttTime start_time, /* Unset : { 0, 0 } */ LttvTracesetContextPosition start_position, /* Unset : num_traces = 0 */ gboolean stop_flag, /* Continue:TRUE Stop:FALSE */