testasyncgetprop.c File Reference

Go to the source code of this file.

Defines

#define TRUE   1
#define FALSE   0
#define NULL   ((void*) 0)
#define ELAPSED(start_time, current_time)

Functions

static void print_backtrace (void)
static int x_error_handler (Display *xdisplay, XErrorEvent *error)
static void error_trap_push (Display *xdisplay)
static void error_trap_pop (Display *xdisplay)
static char * my_strdup (const char *str)
static char * atom_name (Display *display, Atom atom)
static Bool try_get_reply (Display *xdisplay, AgGetPropertyTask *task)
static void run_speed_comparison (Display *xdisplay, Window window)
int main (int argc, char **argv)

Variables

static int error_trap_depth = 0
static struct timeval program_start_time


Define Documentation

#define ELAPSED ( start_time,
current_time   ) 

Value:

(((((double)current_time.tv_sec - start_time.tv_sec) * 1000000 + \
       (current_time.tv_usec - start_time.tv_usec))) / 1000.0)

Definition at line 173 of file testasyncgetprop.c.

Referenced by main(), run_speed_comparison(), and try_get_reply().

#define FALSE   0

Definition at line 46 of file testasyncgetprop.c.

Referenced by __window_is_terminal(), add_constraint(), add_win(), all_whitespace(), ancestor_is_minimized(), apply_alpha(), apply_edge_resistance(), apply_edge_resistance_to_each_side(), apply_mask(), atom_list_from_results(), begin_area_grab(), bell_unflash_frame(), blank_pixbuf(), border_only_cb(), border_only_contents(), border_size(), both_null_or_matching(), button_layout_equal(), button_layout_handler(), cache_edges(), cardinal_list_from_results(), cardinal_with_atom_type_from_results(), changed_idle_handler(), check_moveresize_frequency(), check_no_attributes(), check_state(), check_use_this_motion_notify(), class_hint_from_results(), compositor_idle_cb(), constrain_fullscreen(), constrain_maximization(), constrain_size_limits(), convert_property(), counter_from_results(), decode_text_from_utf8(), dialog_contents(), dimm_icon(), do_all_constraints(), do_appwindow(), do_choose_window(), do_handle_move_to_workspace(), do_operation(), do_operations(), do_screen_and_xinerama_relative_constraints(), draw_op_as_pixbuf(), edge_resistance_timeout(), edges_overlap(), effects_draw_box_animation_timeout(), end_keyboard_grab(), ensure_work_areas_validated(), eq_check(), event_callback(), expose_handler(), find_ancestor_func(), find_and_update_binding(), find_and_update_list_binding(), find_best_size(), find_first_fit(), find_largest_sizes(), free_win(), get_bool(), get_property(), get_standalone_layer(), get_window_picture(), grab_keyboard(), grab_keys(), grab_op_is_keyboard(), grab_op_is_mouse(), grab_op_is_mouse_only(), handle_begin_move(), handle_begin_resize(), handle_cycle_backward(), handle_cycle_forward(), handle_move_to_corner_backend(), handle_move_to_corner_ne(), handle_move_to_corner_nw(), handle_move_to_corner_sw(), handle_move_to_side_e(), handle_move_to_side_n(), handle_move_to_side_s(), handle_move_to_side_w(), handle_move_to_workspace(), handle_panel_keybinding(), handle_preference_update_bool(), handle_preference_update_enum(), handle_preference_update_int(), handle_preference_update_string(), handle_tab_forward(), handle_workspace_switch(), ice_init(), idle_calc_showing(), idle_move_resize(), idle_update_icon(), initialize_grab_edge_resistance_data(), intervening_user_event_occurred(), invalidate_cache_timeout(), invalidate_whole_window(), io_from_ping_dialog(), io_from_warning_dialog(), is_desktop_or_dock_foreach(), is_focused_foreach(), is_minimized_foreach(), is_modifier(), is_shaped(), is_specific_modifier(), key_press(), keycode_is_primary_modifier(), latin1_string_from_results(), latin1_to_utf8(), lists_contain_same_windows(), locate_attributes(), main(), make_dock(), map_win(), maybe_give_disable_workarounds_warning(), maybe_leave_show_desktop_mode(), menu_callback(), menu_cb(), menu_contents(), meta_accel_label_expose_event(), meta_accel_label_update(), meta_area_expose(), meta_bell_init(), meta_change_button_grab(), meta_change_keygrab(), meta_convert_meta_to_wnck(), meta_display_begin_grab_op(), meta_display_end_grab_op(), meta_display_grab_window_buttons(), meta_display_ping_timeout(), meta_display_set_grab_op_cursor(), meta_display_set_input_focus_window(), meta_display_ungrab_focus_window_button(), meta_display_ungrab_window_buttons(), meta_display_update_active_window_hint(), meta_display_window_has_pending_pings(), meta_display_xwindow_is_a_no_focus_window(), meta_draw_op_list_contains(), meta_draw_op_list_validate(), meta_draw_spec_new(), meta_error_trap_push(), meta_error_trap_push_with_return(), meta_fixed_tip_show(), meta_frame_layout_calc_geometry(), meta_frame_layout_validate(), meta_frame_style_set_validate(), meta_frame_style_validate(), meta_frames_apply_shapes(), meta_frames_button_press_event(), meta_frames_button_release_event(), meta_frames_destroy_event(), meta_frames_ensure_layout(), meta_frames_enter_notify_event(), meta_frames_expose_event(), meta_frames_init(), meta_frames_leave_notify_event(), meta_frames_manage_window(), meta_frames_motion_notify_event(), meta_grab_op_is_moving(), meta_grab_op_is_resizing(), meta_gradient_create_diagonal(), meta_gradient_create_horizontal(), meta_gradient_create_interwoven(), meta_gradient_create_multi_diagonal(), meta_gradient_create_multi_horizontal(), meta_gradient_create_multi_vertical(), meta_gradient_create_vertical(), meta_gradient_spec_validate(), meta_icon_cache_free(), meta_icon_cache_get_icon_invalidated(), meta_image_window_new(), meta_image_window_set(), meta_parse_options(), meta_parse_position_expression(), meta_parse_size_expression(), meta_prefs_get_application_based(), meta_preview_expose(), meta_prop_get_atom_list(), meta_prop_get_cardinal_list(), meta_prop_get_cardinal_with_atom_type(), meta_prop_get_class_hint(), meta_prop_get_latin1_string(), meta_prop_get_motif_hints(), meta_prop_get_size_hints(), meta_prop_get_text_property(), meta_prop_get_utf8_list(), meta_prop_get_utf8_string(), meta_prop_get_window(), meta_prop_get_wm_hints(), meta_prop_set_utf8_string_hint(), meta_read_icons(), meta_rectangle_contained_in_region(), meta_rectangle_could_fit_in_region(), meta_rectangle_find_onscreen_edges(), meta_rectangle_intersect(), meta_rectangle_overlap(), meta_rectangle_overlaps_with_region(), meta_rectangle_remove_intersections_with_boxes_from_edges(), meta_screen_apply_startup_properties(), meta_screen_ensure_tab_popup(), meta_screen_ensure_workspace_popup(), meta_screen_free(), meta_screen_get_current_xinerama(), meta_screen_get_natural_xinerama_list(), meta_screen_grab_all_keys(), meta_screen_new(), meta_screen_set_cm_selection(), meta_screen_ungrab_all_keys(), meta_screen_ungrab_keys(), meta_screen_unset_cm_selection(), meta_screen_unshow_desktop(), meta_screen_update_showing_desktop_hint(), meta_screen_update_workspace_layout(), meta_select_image_expose_event(), meta_select_workspace_expose_event(), meta_spawn_command_line_async_on_screen(), meta_stack_get_default_focus_window(), meta_stack_new(), meta_stock_icons_init(), meta_theme_define_color_constant(), meta_theme_define_float_constant(), meta_theme_define_int_constant(), meta_theme_lookup_color_constant(), meta_theme_lookup_float_constant(), meta_theme_lookup_int_constant(), meta_theme_replace_constants(), meta_theme_validate(), meta_ui_create_frame_window(), meta_ui_parse_accelerator(), meta_ui_parse_modifier(), meta_ui_resize_popup_set(), meta_ui_tab_popup_new(), meta_ui_window_is_widget(), meta_ui_window_should_not_cause_focus(), meta_window_begin_grab_op(), meta_window_client_message(), meta_window_constrain(), meta_window_delete(), meta_window_destroy_frame(), meta_window_edge_resistance_for_move(), meta_window_ensure_frame(), meta_window_focus(), meta_window_free(), meta_window_get_icon_geometry(), meta_window_grab_all_keys(), meta_window_grab_keys(), meta_window_handle_mouse_grab_op_event(), meta_window_hide(), meta_window_is_ancestor_of_transient(), meta_window_kill(), meta_window_menu_new(), meta_window_move_resize_internal(), meta_window_move_resize_now(), meta_window_move_resize_request(), meta_window_new(), meta_window_new_with_attrs(), meta_window_notify_focus(), meta_window_send_icccm_message(), meta_window_set_current_workspace_hint(), meta_window_set_demands_attention(), meta_window_set_gravity(), meta_window_set_user_time(), meta_window_shove_titlebar_onscreen(), meta_window_show(), meta_window_showing_on_its_workspace(), meta_window_titlebar_is_onscreen(), meta_window_ungrab_all_keys(), meta_window_ungrab_keys(), meta_window_unmake_above(), meta_window_unmake_fullscreen(), meta_window_unmaximize(), meta_window_unminimize(), meta_window_unset_demands_attention(), meta_window_unshade(), meta_window_unstick(), meta_workspace_new(), motif_hints_from_results(), mouse_button_mods_handler(), mouse_press(), mouse_release(), normal_contents(), outline_window_expose(), override_redirect_cb(), paint_windows(), parse_alpha(), parse_angle(), parse_boolean(), parse_dialog_output(), parse_double(), parse_draw_op_element(), parse_number(), parse_positive_integer(), parse_rounding(), parse_title_scale(), parse_toplevel_element(), place_window_if_needed(), pos_eval(), pos_eval_get_variable(), pos_eval_helper(), pos_tokenize(), prefs_changed_callback(), preview_collection(), previews_of_button_layouts(), primary_modifier_still_pressed(), process_damage(), process_destroy(), process_event(), process_ice_messages(), process_keyboard_move_grab(), process_keyboard_resize_grab(), process_keyboard_resize_grab_op_change(), process_mouse_move_resize_grab(), process_property_notify(), process_reparent(), process_request_frame_extents(), process_selection_request(), process_shape(), process_tab_grab(), process_workspace_switch_grab(), queue_pending_exposes_func(), raise_window_relative_to_managed_windows(), read_rgb_icon(), recalc_window_features(), record_ancestor(), rect_overlaps_region(), rectangle_and_edge_intersection(), rectangle_overlaps_some_window(), redraw_control(), regrab_idle(), regrab_screen_bindings(), regrab_window_bindings(), release_window_with_fd(), reload_mwm_hints(), reload_net_wm_icon_name(), reload_net_wm_name(), reload_net_wm_state(), reload_wm_hints(), reload_wm_protocols(), render_diagonal_func(), render_horizontal_func(), render_simple(), render_vertical_func(), repair_screen(), repair_win(), replace_cache(), root_tile(), search_and_destroy_window(), send_configure_notify(), serial_is_ignored(), set_active_space_hint(), set_allowed_actions_hint(), set_desktop_geometry_hint(), set_desktop_viewport_hint(), set_net_wm_state(), set_number_of_spaces_hint(), set_title_text(), set_wm_state(), set_work_area_hint(), set_work_area_idle_func(), set_workspace_names(), size_hints_from_results(), sn_error_trap_pop(), splashscreen_cb(), stack_do_constrain(), stack_do_relayer(), stack_do_resort(), stack_sync_to_server(), startup_sequence_timeout(), strip_button(), test_basic_fitting(), test_region_fitting(), timeout_debug(), timestamp_too_old(), tip_timeout_func(), titlebar_handler(), toolbar_cb(), try_pixmap_and_mask(), ungrab_all_keys(), ungrab_keyboard(), unmap_win(), unmaximize_window_before_freeing(), unselect_image(), unselect_workspace(), update_binding(), update_command(), update_list_binding(), update_move(), update_move_timeout(), update_net_frame_extents(), update_num_workspaces(), update_resize(), update_resize_timeout(), update_shape(), update_workspace_name(), utf8_list_from_results(), utf8_string_from_results(), utility_cb(), utility_contents(), validate_geometry_border(), validate_geometry_value(), validate_or_free_results(), warp_grab_pointer(), window_activate(), window_from_results(), window_has_shadow(), window_raise_with_delay_callback(), window_state_on_map(), window_unstick_impl(), window_would_be_covered(), wm_hints_from_results(), xrender_add_window(), xrender_manage_screen(), and xrender_process_event().

#define NULL   ((void*) 0)

Definition at line 50 of file testasyncgetprop.c.

#define TRUE   1

Definition at line 42 of file testasyncgetprop.c.

Referenced by __window_is_terminal(), all_whitespace(), apply_edge_resistance(), apply_edge_resistance_to_each_side(), atom_list_from_results(), both_null_or_matching(), button_layout_equal(), button_layout_handler(), cardinal_list_from_results(), cardinal_with_atom_type_from_results(), change_workspace_foreach(), check_moveresize_frequency(), check_no_attributes(), check_state(), check_use_this_motion_notify(), class_hint_from_results(), clear_backing(), clear_icon_cache(), constrain_aspect_ratio(), constrain_fullscreen(), constrain_fully_onscreen(), constrain_maximization(), constrain_partially_onscreen(), constrain_size_increments(), constrain_size_limits(), constrain_titlebar_visible(), constrain_to_single_xinerama(), convert_property(), counter_from_results(), destroy_win(), dialog_contents(), do_all_constraints(), do_choose_window(), do_operation(), do_operations(), do_screen_and_xinerama_relative_constraints(), draw_box_animation(), draw_checkerboard(), edge_resistance_timeout(), effects_draw_box_animation_timeout(), encode_text_as_utf8_markup(), end_keyboard_grab(), ensure_size_window(), eq_dispatch(), event_callback(), evil_timeout(), expose_callback(), find_ancestor_func(), find_best_size(), find_first_fit(), find_largest_sizes(), find_root_ancestor(), finish_interact(), fix_up_edges(), focus_in_event_cb(), focus_out_event_cb(), get_bool(), get_kwm_win_icon(), get_property(), grab_keyboard(), grab_op_is_keyboard(), grab_op_is_mouse(), grab_op_is_mouse_only(), graph_constraints(), handle_cycle_backward(), handle_move_to_corner_ne(), handle_move_to_corner_nw(), handle_move_to_corner_se(), handle_move_to_corner_sw(), handle_move_to_side_e(), handle_move_to_side_n(), handle_move_to_side_s(), handle_move_to_side_w(), handle_move_to_workspace_flip(), handle_preference_init_string(), handle_preference_update_bool(), handle_preference_update_enum(), handle_preference_update_int(), handle_preference_update_string(), handle_raise_or_lower(), handle_tab_backward(), handle_tab_forward(), handle_workspace_switch(), ice_init(), idle_calc_showing(), intervening_user_event_occurred(), io_from_warning_dialog(), is_desktop_or_dock_foreach(), is_focused_foreach(), is_minimized_foreach(), is_modifier(), is_specific_modifier(), key_press(), kill_window_question(), latin1_string_from_results(), list_windows(), locate_attributes(), main(), maybe_give_disable_workarounds_warning(), menu_callback(), menu_item_new(), meta_accel_label_class_init(), meta_accel_label_update(), meta_bell_init(), meta_compositor_xrender_new(), meta_convert_meta_to_wnck(), meta_core_user_move(), meta_core_user_resize(), meta_display_begin_grab_op(), meta_display_check_threshold_reached(), meta_display_cleanup_edges(), meta_display_end_grab_op(), meta_display_get_tab_next(), meta_display_grab_focus_window_button(), meta_display_grab_window_buttons(), meta_display_process_key_event(), meta_display_queue_retheme_all_windows(), meta_display_screen_for_xwindow(), meta_display_set_grab_op_cursor(), meta_display_window_has_pending_pings(), meta_display_xwindow_is_a_no_focus_window(), meta_draw_op_draw_with_env(), meta_draw_op_list_contains(), meta_draw_op_list_validate(), meta_error_trap_pop_with_return(), meta_error_trap_push_with_return(), meta_event_queue_new(), meta_fixed_tip_show(), meta_frame_layout_new(), meta_frame_layout_validate(), meta_frame_style_set_validate(), meta_frame_style_validate(), meta_frame_sync_to_window(), meta_frame_titlebar_event(), meta_frames_apply_shapes(), meta_frames_button_press_event(), meta_frames_button_release_event(), meta_frames_destroy_event(), meta_frames_enter_notify_event(), meta_frames_expose_event(), meta_frames_leave_notify_event(), meta_frames_motion_notify_event(), meta_grab_key(), meta_grab_op_is_moving(), meta_grab_op_is_resizing(), meta_gradient_spec_validate(), meta_group_property_notify(), meta_gtk_widget_get_font_desc(), meta_icon_cache_get_icon_invalidated(), meta_icon_cache_init(), meta_icon_cache_property_changed(), meta_image_window_new(), meta_parse_position_expression(), meta_parse_size_expression(), meta_read_icons(), meta_rectangle_find_onscreen_edges(), meta_rectangle_intersect(), meta_rectangle_remove_intersections_with_boxes_from_edges(), meta_restart(), meta_screen_apply_startup_properties(), meta_screen_ensure_tab_popup(), meta_screen_ensure_workspace_popup(), meta_screen_get_mouse_window(), meta_screen_get_natural_xinerama_list(), meta_screen_grab_all_keys(), meta_screen_grab_keys(), meta_screen_manage_all_windows(), meta_screen_show_desktop(), meta_screen_update_workspace_layout(), meta_select_image_expose_event(), meta_select_workspace_expose_event(), meta_spew_event(), meta_stack_free(), meta_stack_get_default_focus_window_at_point(), meta_stack_set_positions(), meta_stack_update_layer(), meta_stack_update_transient(), meta_theme_define_color_constant(), meta_theme_define_float_constant(), meta_theme_define_int_constant(), meta_theme_lookup_color_constant(), meta_theme_lookup_float_constant(), meta_theme_lookup_int_constant(), meta_theme_replace_constants(), meta_theme_validate(), meta_ui_parse_accelerator(), meta_ui_parse_modifier(), meta_ui_resize_popup_set(), meta_ui_tab_popup_new(), meta_ui_window_should_not_cause_focus(), meta_window_apply_session_info(), meta_window_client_message(), meta_window_configure_request(), meta_window_constrain(), meta_window_edge_resistance_for_resize(), meta_window_ensure_frame(), meta_window_focus(), meta_window_foreach_ancestor(), meta_window_free(), meta_window_get_icon_geometry(), meta_window_grab_all_keys(), meta_window_grab_keys(), meta_window_handle_mouse_grab_op_event(), meta_window_hide(), meta_window_make_above(), meta_window_make_fullscreen_internal(), meta_window_maximize_internal(), meta_window_minimize(), meta_window_move_resize_internal(), meta_window_move_resize_request(), meta_window_new(), meta_window_new_with_attrs(), meta_window_notify_focus(), meta_window_place(), meta_window_refresh_resize_popup(), meta_window_set_demands_attention(), meta_window_set_stack_position_no_sync(), meta_window_set_user_time(), meta_window_shade(), meta_window_show(), meta_window_showing_on_its_workspace(), meta_window_stick(), meta_window_titlebar_is_onscreen(), meta_window_unminimize(), meta_window_update_keyboard_resize(), meta_workspace_invalidate_work_area(), meta_workspace_new(), motif_hints_from_results(), mouse_press(), mouse_release(), paint_all(), parse_alpha(), parse_angle(), parse_boolean(), parse_dialog_output(), parse_double(), parse_draw_op_element(), parse_number(), parse_positive_integer(), parse_rounding(), parse_title_scale(), parse_toplevel_element(), place_window_if_needed(), pos_eval(), pos_eval_get_variable(), pos_eval_helper(), pos_tokenize(), prefs_changed_callback(), preview_collection(), previews_of_button_layouts(), primary_modifier_still_pressed(), process_circulate_notify(), process_event(), process_ice_messages(), process_keyboard_move_grab(), process_keyboard_resize_grab(), process_keyboard_resize_grab_op_change(), process_mouse_move_resize_grab(), process_property_notify(), process_selection_clear(), process_selection_request(), process_shape(), process_tab_grab(), process_workspace_switch_grab(), queue_calc_showing_func(), raise_window_relative_to_managed_windows(), read_rgb_icon(), recalc_window_features(), rectangle_and_edge_intersection(), rectangle_overlaps_some_window(), release_window_with_fd(), reload_mwm_hints(), reload_net_wm_desktop(), reload_net_wm_icon_name(), reload_net_wm_name(), reload_net_wm_state(), reload_wm_hints(), reload_wm_protocols(), reload_xinerama_infos(), render_diagonal_alpha_func(), repair_win(), resize_win(), root_tile(), run_speed_comparison(), save_phase_2_callback(), save_yourself_callback(), scaled_from_pixdata(), search_and_destroy_window(), select_image(), select_workspace(), serial_is_ignored(), set_title_text(), set_workspace_names(), size_hints_from_results(), solid_picture(), stack_do_relayer(), stack_do_window_additions(), stack_sync_to_server(), start_element_handler(), startup_sequence_timeout(), stick_foreach_func(), strip_button(), test_basic_fitting(), test_clamping_to_region(), test_clipping_to_region(), test_region_fitting(), timestamp_too_old(), traverse_constraint(), try_pixmap_and_mask(), unmap_win(), unminimize_func(), update_binding(), update_command(), update_list_binding(), update_move(), update_net_wm_type(), update_num_workspaces(), update_resize(), update_resize_timeout(), update_workspace_name(), utf8_list_from_results(), utf8_string_from_results(), validate_geometry_border(), validate_geometry_value(), validate_or_free_results(), warn_about_no_sm_support(), warp_grab_pointer(), window_from_results(), window_has_shadow(), window_raise_with_delay_callback(), window_stick_impl(), window_would_be_covered(), windows_on_different_xinerama(), wm_hints_from_results(), xrender_manage_screen(), xrender_set_active_window(), and xrender_unmanage_screen().


Function Documentation

static char* atom_name ( Display *  display,
Atom  atom 
) [static]

Definition at line 147 of file testasyncgetprop.c.

References error_trap_pop(), error_trap_push(), my_strdup(), and NULL.

Referenced by try_get_reply().

static void error_trap_pop ( Display *  xdisplay  )  [static]

Definition at line 118 of file testasyncgetprop.c.

References error_trap_depth.

Referenced by atom_name(), and run_speed_comparison().

static void error_trap_push ( Display *  xdisplay  )  [static]

Definition at line 112 of file testasyncgetprop.c.

References error_trap_depth.

Referenced by atom_name(), and run_speed_comparison().

int main ( int  argc,
char **  argv 
)

static char* my_strdup ( const char *  str  )  [static]

Definition at line 131 of file testasyncgetprop.c.

References NULL.

Referenced by atom_name().

static void print_backtrace ( void   )  [static]

Definition at line 78 of file testasyncgetprop.c.

Referenced by x_error_handler().

static void run_speed_comparison ( Display *  xdisplay,
Window  window 
) [static]

static Bool try_get_reply ( Display *  xdisplay,
AgGetPropertyTask task 
) [static]

static int x_error_handler ( Display *  xdisplay,
XErrorEvent *  error 
) [static]

Definition at line 87 of file testasyncgetprop.c.

References error_trap_depth, and print_backtrace().


Variable Documentation

int error_trap_depth = 0 [static]

Definition at line 84 of file testasyncgetprop.c.

Referenced by error_trap_pop(), error_trap_push(), and x_error_handler().

struct timeval program_start_time [static]

Definition at line 177 of file testasyncgetprop.c.

Referenced by main(), and try_get_reply().


Generated on Sat Aug 23 22:04:21 2008 for metacity by  doxygen 1.5.5