LttvAttributeValue value;
g_assert(lttv_iattribute_find_by_path(main_win->attributes,
- "hooks/updatetraceset", LTTV_POINTER, &value));
+ "hooks/updatetraceset", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL)return;
lttv_hooks_call(tmp,traceset);
LttvAttributeValue value;
g_assert(lttv_iattribute_find_by_path(main_win->attributes,
- "hooks/updatefilter", LTTV_POINTER, &value));
+ "hooks/updatefilter", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL)return;
LttvAttributeValue value;
g_assert(lttv_iattribute_find_by_path(attributes_global,
- "viewers/toolbar", LTTV_POINTER, &value));
+ "viewers/toolbar", LTTV_POINTER, &value));
toolbar = (LttvToolbars*)*(value.v_pointer);
if(toolbar == NULL){
LttvAttributeValue value;
g_assert(lttv_iattribute_find_by_path(attributes_global,
- "viewers/toolbar", LTTV_POINTER, &value));
+ "viewers/toolbar", LTTV_POINTER, &value));
toolbar = (LttvToolbars*)*(value.v_pointer);
main_window_remove_toolbar_item(view_constructor);
LttvAttributeValue value;
g_assert(lttv_iattribute_find_by_path(attributes_global,
- "viewers/menu", LTTV_POINTER, &value));
+ "viewers/menu", LTTV_POINTER, &value));
menu = (LttvMenus*)*(value.v_pointer);
if(menu == NULL){
//time_window->start_time = main_win->current_tab->time_window.start_time;
//time_window->time_width = main_win->current_tab->time_window.time_width;
*time_interval = *(LTTV_TRACESET_CONTEXT(main_win->current_tab->traceset_info->
- traceset_context)->Time_Span);
+ traceset_context)->Time_Span);
}
LttvHooks * tmp;
main_win->current_tab->time_window = *time_window;
gtk_multi_vpaned_set_scroll_value(main_win->current_tab->multi_vpaned,
- ltt_time_to_double(time_window->start_time)
- * NANOSECONDS_PER_SECOND );
+ ltt_time_to_double(time_window->start_time)
+ * NANOSECONDS_PER_SECOND );
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatetimewindow", LTTV_POINTER, &value));
+ "hooks/updatetimewindow", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_call(tmp, time_window);
LttvHooks * tmp;
main_win->current_tab->current_time = *time;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatecurrenttime", LTTV_POINTER, &value));
+ "hooks/updatecurrenttime", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL)return;
*/
void reg_update_time_window(LttvHook hook, gpointer hook_data,
- MainWindow * main_win)
+ MainWindow * main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatetimewindow", LTTV_POINTER, &value));
+ "hooks/updatetimewindow", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL){
tmp = lttv_hooks_new();
*/
void unreg_update_time_window(LttvHook hook, gpointer hook_data,
- MainWindow * main_win)
+ MainWindow * main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatetimewindow", LTTV_POINTER, &value));
+ "hooks/updatetimewindow", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_remove_data(tmp, hook, hook_data);
*/
void reg_update_traceset(LttvHook hook, gpointer hook_data,
- MainWindow * main_win)
+ MainWindow * main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatetraceset", LTTV_POINTER, &value));
+ "hooks/updatetraceset", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL){
tmp = lttv_hooks_new();
*/
void unreg_update_traceset(LttvHook hook, gpointer hook_data,
- MainWindow * main_win)
+ MainWindow * main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatetraceset", LTTV_POINTER, &value));
+ "hooks/updatetraceset", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_remove_data(tmp, hook, hook_data);
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatetraceset", LTTV_POINTER, &value));
+ "hooks/updatetraceset", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_call(tmp, NULL);
*/
void reg_update_filter(LttvHook hook, gpointer hook_data,
- MainWindow *main_win)
+ MainWindow *main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->attributes,
- "hooks/updatefilter", LTTV_POINTER, &value));
+ "hooks/updatefilter", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL){
tmp = lttv_hooks_new();
*/
void unreg_update_filter(LttvHook hook, gpointer hook_data,
- MainWindow * main_win)
+ MainWindow * main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->attributes,
- "hooks/updatefilter", LTTV_POINTER, &value));
+ "hooks/updatefilter", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_remove_data(tmp, hook, hook_data);
*/
void reg_update_current_time(LttvHook hook, gpointer hook_data,
- MainWindow *main_win)
+ MainWindow *main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatecurrenttime", LTTV_POINTER, &value));
+ "hooks/updatecurrenttime", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL){
tmp = lttv_hooks_new();
*/
void unreg_update_current_time(LttvHook hook, gpointer hook_data,
- MainWindow * main_win)
+ MainWindow * main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/updatecurrenttime", LTTV_POINTER, &value));
+ "hooks/updatecurrenttime", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_remove_data(tmp, hook, hook_data);
*/
void reg_show_viewer(LttvHook hook, gpointer hook_data,
- MainWindow *main_win)
+ MainWindow *main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/showviewer", LTTV_POINTER, &value));
+ "hooks/showviewer", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL){
tmp = lttv_hooks_new();
*/
void unreg_show_viewer(LttvHook hook, gpointer hook_data,
- MainWindow * main_win)
+ MainWindow * main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/showviewer", LTTV_POINTER, &value));
+ "hooks/showviewer", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_remove_data(tmp, hook, hook_data);
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/showviewer", LTTV_POINTER, &value));
+ "hooks/showviewer", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_call(tmp, NULL);
*/
void reg_update_dividor(LttvHook hook, gpointer hook_data,
- MainWindow *main_win)
+ MainWindow *main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/hpanedividor", LTTV_POINTER, &value));
+ "hooks/hpanedividor", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL){
tmp = lttv_hooks_new();
*/
void unreg_update_dividor(LttvHook hook, gpointer hook_data,
- MainWindow *main_win)
+ MainWindow *main_win)
{
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/hpanedividor", LTTV_POINTER, &value));
+ "hooks/hpanedividor", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_remove_data(tmp, hook, hook_data);
LttvAttributeValue value;
LttvHooks * tmp;
g_assert(lttv_iattribute_find_by_path(main_win->current_tab->attributes,
- "hooks/hpanedividor", LTTV_POINTER, &value));
+ "hooks/hpanedividor", LTTV_POINTER, &value));
tmp = (LttvHooks*)*(value.v_pointer);
if(tmp == NULL) return;
lttv_hooks_call(tmp, &position);
*/
void process_traceset_api(MainWindow *main_win, LttTime start,
- LttTime end, unsigned maxNumEvents)
+ LttTime end, unsigned maxNumEvents)
{
lttv_process_traceset_seek_time(
LTTV_TRACESET_CONTEXT(main_win->current_tab->traceset_info->
*/
void context_add_hooks_api(MainWindow *main_win ,
- LttvHooks *before_traceset,
- LttvHooks *after_traceset,
- LttvHooks *check_trace,
- LttvHooks *before_trace,
- LttvHooks *after_trace,
- LttvHooks *check_tracefile,
- LttvHooks *before_tracefile,
- LttvHooks *after_tracefile,
- LttvHooks *check_event,
- LttvHooks *before_event,
- LttvHooks *after_event)
+ LttvHooks *before_traceset,
+ LttvHooks *after_traceset,
+ LttvHooks *check_trace,
+ LttvHooks *before_trace,
+ LttvHooks *after_trace,
+ LttvHooks *check_tracefile,
+ LttvHooks *before_tracefile,
+ LttvHooks *after_tracefile,
+ LttvHooks *check_event,
+ LttvHooks *before_event,
+ LttvHooks *after_event)
{
LttvTracesetContext * tsc =
- LTTV_TRACESET_CONTEXT(main_win->current_tab->traceset_info->
- traceset_context);
+ LTTV_TRACESET_CONTEXT(main_win->current_tab->traceset_info->
+ traceset_context);
lttv_traceset_context_add_hooks(tsc,before_traceset,after_traceset,
- check_trace,before_trace,after_trace,
- check_tracefile,before_tracefile,after_tracefile,
- check_event,before_event, after_event);
+ check_trace,before_trace,after_trace,
+ check_tracefile,before_tracefile,after_tracefile,
+ check_event,before_event, after_event);
}
*/
void context_remove_hooks_api(MainWindow *main_win ,
- LttvHooks *before_traceset,
- LttvHooks *after_traceset,
- LttvHooks *check_trace,
- LttvHooks *before_trace,
- LttvHooks *after_trace,
- LttvHooks *check_tracefile,
- LttvHooks *before_tracefile,
- LttvHooks *after_tracefile,
- LttvHooks *check_event,
- LttvHooks *before_event,
- LttvHooks *after_event)
+ LttvHooks *before_traceset,
+ LttvHooks *after_traceset,
+ LttvHooks *check_trace,
+ LttvHooks *before_trace,
+ LttvHooks *after_trace,
+ LttvHooks *check_tracefile,
+ LttvHooks *before_tracefile,
+ LttvHooks *after_tracefile,
+ LttvHooks *check_event,
+ LttvHooks *before_event,
+ LttvHooks *after_event)
{
LttvTracesetContext * tsc =
LTTV_TRACESET_CONTEXT(main_win->current_tab->traceset_info->traceset_context);
lttv_traceset_context_remove_hooks(tsc,before_traceset,after_traceset,
- check_trace,before_trace,after_trace,
- check_tracefile,before_tracefile,after_tracefile,
- check_event,before_event, after_event);
+ check_trace,before_trace,after_trace,
+ check_tracefile,before_tracefile,after_tracefile,
+ check_event,before_event, after_event);
}