async-getprop.c File Reference

Go to the source code of this file.

Data Structures

struct  _ListNode
struct  _AgGetPropertyTask
struct  _AgPerDisplayData

Defines

#define NEED_REPLIES
#define NULL   ((void*)0)
#define ALIGN_VALUE(this, boundary)   (( ((unsigned long)(this)) + (((unsigned long)(boundary)) -1)) & (~(((unsigned long)(boundary))-1)))

Typedefs

typedef struct _ListNode ListNode
typedef struct _AgPerDisplayData AgPerDisplayData

Functions

static void append_to_list (ListNode **head, ListNode **tail, ListNode *task)
static void remove_from_list (ListNode **head, ListNode **tail, ListNode *task)
static void move_to_completed (AgPerDisplayData *dd, AgGetPropertyTask *task)
static AgGetPropertyTaskfind_pending_by_request_sequence (AgPerDisplayData *dd, unsigned long request_seq)
static Bool async_get_property_handler (Display *dpy, xReply *rep, char *buf, int len, XPointer data)
static AgPerDisplayDataget_display_data (Display *display, Bool create)
static void maybe_free_display_data (AgPerDisplayData *dd)
AgGetPropertyTaskag_task_create (Display *dpy, Window window, Atom property, long offset, long length, Bool delete, Atom req_type)
static void free_task (AgGetPropertyTask *task)
Status ag_task_get_reply_and_free (AgGetPropertyTask *task, Atom *actual_type, int *actual_format, unsigned long *nitems, unsigned long *bytesafter, char **prop)
Bool ag_task_have_reply (AgGetPropertyTask *task)
Atom ag_task_get_property (AgGetPropertyTask *task)
Window ag_task_get_window (AgGetPropertyTask *task)
Display * ag_task_get_display (AgGetPropertyTask *task)
AgGetPropertyTaskag_get_next_completed_task (Display *display)
void * ag_Xmalloc (unsigned long bytes)
void * ag_Xmalloc0 (unsigned long bytes)

Variables

static ListNodedisplay_datas = NULL
static ListNodedisplay_datas_tail = NULL


Define Documentation

#define ALIGN_VALUE ( this,
boundary   )     (( ((unsigned long)(this)) + (((unsigned long)(boundary)) -1)) & (~(((unsigned long)(boundary))-1)))

#define NEED_REPLIES

Definition at line 40 of file async-getprop.c.

#define NULL   ((void*)0)

Definition at line 44 of file async-getprop.c.

Referenced by __window_is_terminal(), add_constraint(), add_context_to_error(), add_damage(), add_repair(), add_win(), ag_get_next_completed_task(), ag_task_create(), ag_task_get_reply_and_free(), append_to_list(), apply_alpha(), apply_constraints(), apply_edge_resistance_to_each_side(), async_get_property_handler(), atom_list_from_results(), atom_name(), begin_area_grab(), bell_flash_screen(), bell_flash_window_frame(), blank_pixbuf(), both_null_or_matching(), button_layout_handler(), cache_edges(), cardinal_list_from_results(), cardinal_with_atom_type_from_results(), change_notify(), changed_idle_handler(), check_no_attributes(), check_state(), class_hint_from_results(), cleanup_error(), clear_cache(), clear_icon_cache(), clicked_toolbar_cb(), colorize_pixbuf(), control_rect(), counter_from_results(), create_constraints(), create_lame_apps_list(), create_root_buffer(), delete_ping_timeout_func(), destroy_win(), determine_mode(), disable_compositor(), disconnect(), do_all_constraints(), do_appwindow(), do_choose_window(), do_handle_move_to_workspace(), draw_op_as_pixbuf(), draw_window(), draw_xor_rect(), emit_changed(), enable_compositor(), end_element_handler(), ensure_info(), ensure_logfile(), ensure_mru_position_after(), ensure_size_window(), ensure_work_areas_validated(), error_about_command(), error_on_generic_command(), event_callback(), evil_timeout(), expose_handler(), filter_func(), find_best_match(), find_best_size(), find_first_fit(), find_handler(), find_hooks(), find_next_cascade(), find_pending_by_request_sequence(), find_screen_for_selection(), find_tab_backward(), find_tab_forward(), find_window_for_child_window_in_display(), find_window_for_screen(), find_window_in_display(), focus_ancestor_or_mru_window(), free_constraints(), free_win(), get_bool(), get_button(), get_cmap(), get_default_focus_window(), get_disjoint_strut_rect_list_in_region(), get_display_data(), get_focussed_group(), get_kwm_win_icon(), get_maximum_layer_in_group(), get_modal_transient(), get_pixbuf(), get_possible_matches(), get_property(), get_rect_minus_overlap(), get_screen_edges(), get_screen_region(), get_standalone_layer(), get_strut_list(), get_style(), get_window(), get_window_contents(), get_window_pixbuf(), get_window_type(), get_work_area_xinerama(), get_workspace_name_with_accel(), get_xinerama_edges(), grab_area_at_mouse(), grab_keys(), graph_constraints(), handle_activate_workspace(), handle_preference_init_bool(), handle_preference_init_enum(), handle_preference_init_int(), 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_run_command(), handle_run_terminal(), handle_toggle_desktop(), handle_workspace_switch(), hide_overlay_window(), ice_init(), idle_calc_showing(), idle_move_resize(), idle_update_icon(), image_resized(), init_bindings(), init_commands(), init_prop_value(), init_random_ness(), init_workspace_names(), intervening_user_event_occurred(), invalidate_all_caches(), invalidate_whole_window(), invalidate_work_areas(), io_from_ping_dialog(), key_press(), keysym_name(), kill_window_question(), latin1_string_from_results(), list_windows(), lists_contain_same_windows(), load_state(), locate_attributes(), main(), make_dialog(), make_dock(), make_shadow(), map_win(), maybe_free_display_data(), menu_callback(), menu_contents(), menu_item_new(), merge_spanning_rects_in_region(), meta_accel_label_destroy(), meta_accel_label_get_type(), meta_accel_label_init(), meta_accel_label_new_with_mnemonic(), meta_accel_label_size_request(), meta_accel_label_update(), meta_alpha_gradient_spec_free(), meta_alpha_gradient_spec_new(), meta_area_expose(), meta_area_get_type(), meta_bell_init(), meta_bug(), meta_color_spec_free(), meta_color_spec_new_from_string(), meta_color_spec_render(), meta_compositor_new(), meta_compositor_xrender_new(), meta_core_begin_grab_op(), meta_core_get(), meta_core_get_grab_frame(), meta_core_get_menu_accelerator(), meta_core_get_workspace_name_with_index(), meta_core_user_lower_and_unfocus(), meta_debug_spew_real(), meta_display_begin_grab_op(), meta_display_cleanup_edges(), meta_display_close(), meta_display_compute_resistance_and_snapping_edges(), meta_display_end_grab_op(), meta_display_focus_the_no_focus_window(), meta_display_for_x_display(), meta_display_free_group_prop_hooks(), meta_display_free_window_prop_hooks(), meta_display_get_current_time_roundtrip(), meta_display_get_tab_current(), meta_display_get_tab_list(), meta_display_get_tab_next(), meta_display_grab_window_buttons(), meta_display_init_group_prop_hooks(), meta_display_init_keys(), meta_display_init_window_prop_hooks(), meta_display_list_windows(), meta_display_lookup_group(), meta_display_process_key_event(), meta_display_queue_retheme_all_windows(), meta_display_register_x_window(), meta_display_remove_autoraise_callback(), meta_display_screen_for_root(), meta_display_screen_for_x_screen(), meta_display_screen_for_xwindow(), meta_display_set_cursor_theme(), meta_display_set_grab_op_cursor(), meta_display_ungrab_window_buttons(), meta_display_unmanage_screen(), meta_display_unmanage_windows_for_screen(), meta_display_unregister_x_window(), meta_display_update_active_window_hint(), meta_display_xwindow_is_a_no_focus_window(), meta_draw_op_draw_with_env(), meta_draw_op_free(), meta_draw_op_list_new(), meta_draw_op_list_ref(), meta_draw_op_list_unref(), meta_draw_op_list_validate(), meta_draw_spec_new(), meta_effect_run_close(), meta_effect_run_focus(), meta_effect_run_minimize(), meta_effect_run_unminimize(), meta_effects_begin_wireframe(), meta_effects_end_wireframe(), meta_error_trap_pop_internal(), meta_error_trap_push_internal(), meta_event_queue_new(), meta_fatal(), meta_fixed_tip_hide(), meta_fixed_tip_show(), meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_ref(), meta_frame_layout_unref(), meta_frame_layout_validate(), meta_frame_style_draw(), meta_frame_style_ref(), meta_frame_style_set_ref(), meta_frame_style_set_unref(), meta_frame_style_set_validate(), meta_frame_style_unref(), meta_frame_style_validate(), meta_frames_apply_shapes(), meta_frames_button_press_event(), meta_frames_button_release_event(), meta_frames_destroy(), meta_frames_destroy_event(), meta_frames_ensure_layout(), meta_frames_enter_notify_event(), meta_frames_expose_event(), meta_frames_font_changed(), meta_frames_get_geometry(), meta_frames_get_type(), meta_frames_init(), meta_frames_leave_notify_event(), meta_frames_manage_window(), meta_frames_motion_notify_event(), meta_frames_new(), meta_frames_paint_to_drawable(), meta_frames_set_title(), meta_frames_set_window_background(), meta_frames_unflicker_bg(), meta_frames_unmanage_window(), meta_free_gslist_and_elements(), meta_gdk_pixbuf_get_from_pixmap(), meta_gdk_pixbuf_get_from_window(), meta_gradient_create_diagonal(), meta_gradient_create_horizontal(), meta_gradient_create_interwoven(), meta_gradient_create_multi(), meta_gradient_create_multi_diagonal(), meta_gradient_create_multi_horizontal(), meta_gradient_create_multi_vertical(), meta_gradient_create_simple(), meta_gradient_create_vertical(), meta_gradient_spec_free(), meta_gradient_spec_new(), meta_gradient_spec_render(), meta_gradient_spec_validate(), meta_group_new(), meta_group_reload_properties(), meta_group_unref(), meta_group_update_layers(), meta_gtk_widget_get_font_desc(), meta_icon_cache_init(), meta_invalidate_default_icons(), meta_parse_options(), meta_parse_position_expression(), meta_parse_size_expression(), meta_prefs_change_workspace_name(), meta_prefs_get_command(), meta_prefs_get_titlebar_font(), meta_prefs_get_workspace_name(), meta_prefs_init(), meta_prefs_remove_listener(), meta_prefs_set_num_workspaces(), meta_preview_expose(), meta_preview_finalize(), meta_preview_get_clip_region(), meta_preview_get_icon(), meta_preview_get_mini_icon(), meta_preview_get_type(), meta_print_self_identity(), meta_prop_get_atom_list(), meta_prop_get_cardinal_list(), meta_prop_get_class_hint(), meta_prop_get_latin1_string(), meta_prop_get_motif_hints(), meta_prop_get_size_hints(), meta_prop_get_utf8_list(), meta_prop_get_utf8_string(), meta_prop_get_values(), meta_prop_get_wm_hints(), meta_read_icons(), meta_rectangle_area(), meta_rectangle_clamp_to_fit_into_region(), meta_rectangle_clip_to_region(), meta_rectangle_contained_in_region(), meta_rectangle_could_fit_in_region(), meta_rectangle_edge_list_to_string(), meta_rectangle_find_nonintersected_xinerama_edges(), meta_rectangle_find_onscreen_edges(), meta_rectangle_free_list_and_elements(), meta_rectangle_get_minimal_spanning_set_for_region(), meta_rectangle_intersect(), meta_rectangle_overlap(), meta_rectangle_overlaps_with_region(), meta_rectangle_region_to_string(), meta_rectangle_shove_into_region(), meta_screen_apply_startup_properties(), meta_screen_composite_all_windows(), meta_screen_ensure_tab_popup(), meta_screen_ensure_workspace_popup(), meta_screen_for_x_screen(), meta_screen_foreach_window(), meta_screen_free(), meta_screen_get_workspace_by_index(), meta_screen_get_xinerama_neighbor(), meta_screen_manage_all_windows(), meta_screen_minimize_all_on_active_workspace_except(), meta_screen_new(), meta_screen_queue_frame_redraws(), meta_screen_queue_window_resizes(), meta_screen_queue_workarea_recalc(), meta_screen_show_desktop(), meta_screen_update_workspace_layout(), meta_screen_update_workspace_names(), meta_select_display(), meta_select_image_get_type(), meta_select_workspace_expose_event(), meta_select_workspace_get_type(), meta_session_init(), meta_session_shutdown(), meta_spawn_command_line_async_on_screen(), meta_spew_event(), meta_stack_get_above(), meta_stack_get_below(), meta_stack_get_bottom(), meta_stack_get_top(), meta_stack_list_windows(), meta_stack_new(), meta_stack_set_positions(), meta_stock_icons_init(), meta_text_property_to_utf8(), meta_theme_calc_geometry(), meta_theme_define_color_constant(), meta_theme_define_float_constant(), meta_theme_define_int_constant(), meta_theme_draw_frame(), meta_theme_free(), meta_theme_get_frame_borders(), meta_theme_get_frame_style(), meta_theme_get_title_scale(), meta_theme_load(), meta_theme_load_image(), meta_theme_lookup_color_constant(), meta_theme_lookup_float_constant(), meta_theme_lookup_int_constant(), meta_theme_set_current(), meta_theme_validate(), meta_topic_real(), meta_ui_accelerator_parse(), meta_ui_add_event_func(), meta_ui_create_frame_window(), meta_ui_get_default_mini_icon(), meta_ui_get_default_window_icon(), meta_ui_get_drag_threshold(), meta_ui_get_pixbuf_from_pixmap(), meta_ui_have_a_theme(), meta_ui_init(), meta_ui_remove_event_func(), meta_ui_resize_popup_free(), meta_ui_resize_popup_set(), meta_ui_resize_popup_set_showing(), meta_ui_tab_popup_backward(), meta_ui_tab_popup_forward(), meta_ui_tab_popup_free(), meta_ui_tab_popup_new(), meta_ui_tab_popup_select(), meta_ui_window_is_widget(), meta_verbose_real(), meta_warning(), meta_window_activate(), meta_window_apply_session_info(), meta_window_client_message(), meta_window_compute_group(), meta_window_destroy_frame(), meta_window_ensure_frame(), meta_window_focus(), meta_window_foreach_ancestor(), meta_window_foreach_transient(), meta_window_free(), meta_window_get_gravity_position(), meta_window_get_group(), meta_window_get_icon_geometry(), meta_window_get_startup_id(), meta_window_get_wireframe_geometry(), meta_window_get_work_area_all_xineramas(), meta_window_get_work_area_current_xinerama(), meta_window_grab_all_keys(), meta_window_grab_keys(), meta_window_kill(), meta_window_lookup_saved_state(), meta_window_maximize(), meta_window_maximize_internal(), meta_window_menu_new(), meta_window_menu_popup(), meta_window_minimize(), meta_window_move_resize_internal(), meta_window_new(), meta_window_new_with_attrs(), meta_window_notify_focus(), meta_window_place(), meta_window_present_delete_dialog(), meta_window_queue(), meta_window_refresh_resize_popup(), meta_window_reload_properties_from_xwindow(), meta_window_same_application(), meta_window_set_current_workspace_hint(), meta_window_set_demands_attention(), meta_window_set_stack_position_no_sync(), meta_window_show(), meta_window_show_menu(), meta_window_showing_on_its_workspace(), meta_window_stack_just_below(), meta_window_ungrab_keys(), meta_window_unminimize(), meta_window_unqueue(), meta_window_update_icon_now(), meta_window_update_keyboard_resize(), meta_window_update_struts(), meta_workspace_activate(), meta_workspace_activate_with_focus(), meta_workspace_add_window(), meta_workspace_free(), meta_workspace_invalidate_work_area(), meta_workspace_list_windows(), meta_workspace_new(), meta_workspace_queue_calc_showing(), meta_workspace_relocate_windows(), meta_workspace_remove_window(), motif_hints_from_results(), mouse_press(), mouse_release(), my_strdup(), no_parent_dialog_cb(), normal_contents(), on_realize_set_type(), outline_window_expose(), paint_dock_shadows(), paint_root(), paint_windows(), parse_alpha(), parse_aspect_ratio(), parse_border(), parse_button_element(), parse_distance(), parse_double(), parse_draw_op_element(), parse_gradient_element(), parse_info_init(), parse_menu_icon_element(), parse_piece_element(), parse_positive_integer(), parse_size_unchecked(), parse_style_element(), parse_style_set_element(), parse_toplevel_element(), parse_x_position_unchecked(), parse_y_position_unchecked(), peek_state(), pid_from_string(), pop_state(), pos_tokenize(), prefs_changed_callback(), preview_collection(), previews_of_button_layouts(), process_circulate_notify(), process_configure_notify(), process_create(), process_damage(), process_event(), process_expose(), process_ice_messages(), process_keyboard_move_grab(), process_keyboard_resize_grab(), process_property_notify(), process_reparent(), process_request_frame_extents(), process_selection_clear(), process_selection_request(), process_shape(), process_tab_grab(), process_workspace_switch_grab(), queue_changed(), queue_recalc_func(), queue_windows_showing(), raise_window_relative_to_managed_windows(), read_rgb_icon(), rect_for_function(), rect_overlaps_region(), rectangle_overlaps_some_window(), regenerate_save_file(), regrab_screen_bindings(), regrab_window_bindings(), release_window_with_fd(), reload_net_startup_id(), reload_net_wm_icon_name(), reload_net_wm_name(), reload_prop_value(), reload_transient_for(), reload_wm_class(), reload_wm_client_machine(), reload_wm_icon_name(), reload_wm_name(), reload_xinerama_infos(), remove_from_list(), remove_pending_pings_for_window(), remove_sequence(), remove_window_from_group(), render_pixbuf(), repair_screen(), replace_rect_with_list(), resize_win(), restack_win(), root_tile(), run_position_expression_tests(), run_speed_comparison(), run_theme_benchmark(), sanity_check_timestamps(), save_state(), scale_and_alpha_pixbuf(), scaled_from_pixdata(), search_and_destroy_window(), set_clone_restart_commands(), set_gtk_window_border_only(), set_gtk_window_struts(), set_gtk_window_type(), set_up_icon_windows(), set_up_the_evil(), set_work_area_hint(), show_overlay_window(), show_tip_now(), shutdown_cancelled_callback(), size_hints_from_results(), sn_error_trap_pop(), sn_error_trap_push(), stack_do_relayer(), stack_do_window_additions(), stack_do_window_deletions(), stack_sync_to_server(), start_element_handler(), startup_sequence_timeout(), strip_button(), tab_entry_new(), test_find_nonintersected_xinerama_edges(), test_find_onscreen_edges(), test_regions_okay(), text_handler(), text_property_from_results(), theme_get_style(), theme_name_handler(), timeout_debug(), titlebar_handler(), traverse_constraint(), try_get_reply(), try_pixmap_and_mask(), unmap_win(), unminimize_window_and_all_transient_parents(), update_binding(), update_command(), update_list_binding(), update_net_wm_type(), update_num_workspaces(), update_role(), update_size_window(), update_sm_hints(), update_startup_feedback(), update_workspace_name(), utf8_fputs(), utf8_list_from_results(), utf8_string_from_results(), validate_border(), validate_or_free_results(), warn_about_lame_clients_and_finish_interact(), warn_about_no_sm_support(), window_activate(), window_from_results(), window_from_string(), window_has_shadow(), window_raise_with_delay_callback(), window_would_be_covered(), wm_hints_from_results(), x_error_handler(), x_io_error_handler(), xrender_get_window_pixmap(), xrender_manage_screen(), xrender_set_active_window(), and xrender_unmanage_screen().


Typedef Documentation

Definition at line 48 of file async-getprop.c.

typedef struct _ListNode ListNode

Definition at line 47 of file async-getprop.c.


Function Documentation

AgGetPropertyTask* ag_get_next_completed_task ( Display *  display  ) 

AgGetPropertyTask* ag_task_create ( Display *  dpy,
Window  window,
Atom  property,
long  offset,
long  length,
Bool  delete,
Atom  req_type 
)

Display* ag_task_get_display ( AgGetPropertyTask task  ) 

Definition at line 646 of file async-getprop.c.

References _AgGetPropertyTask::dd, and _AgPerDisplayData::display.

Atom ag_task_get_property ( AgGetPropertyTask task  ) 

Definition at line 634 of file async-getprop.c.

References _AgGetPropertyTask::property.

Referenced by try_get_reply().

Status ag_task_get_reply_and_free ( AgGetPropertyTask task,
Atom *  actual_type,
int *  actual_format,
unsigned long *  nitems,
unsigned long *  bytesafter,
char **  prop 
)

Window ag_task_get_window ( AgGetPropertyTask task  ) 

Definition at line 640 of file async-getprop.c.

References _AgGetPropertyTask::window.

Referenced by try_get_reply().

Bool ag_task_have_reply ( AgGetPropertyTask task  ) 

void* ag_Xmalloc ( unsigned long  bytes  ) 

void* ag_Xmalloc0 ( unsigned long  bytes  ) 

Definition at line 677 of file async-getprop.c.

Referenced by wm_hints_from_results().

static void append_to_list ( ListNode **  head,
ListNode **  tail,
ListNode task 
) [static]

Definition at line 94 of file async-getprop.c.

References _ListNode::next, and NULL.

Referenced by ag_task_create(), get_display_data(), and move_to_completed().

static Bool async_get_property_handler ( Display *  dpy,
xReply *  rep,
char *  buf,
int  len,
XPointer  data 
) [static]

static AgGetPropertyTask* find_pending_by_request_sequence ( AgPerDisplayData dd,
unsigned long  request_seq 
) [static]

static void free_task ( AgGetPropertyTask task  )  [static]

static AgPerDisplayData* get_display_data ( Display *  display,
Bool  create 
) [static]

static void maybe_free_display_data ( AgPerDisplayData dd  )  [static]

static void move_to_completed ( AgPerDisplayData dd,
AgGetPropertyTask task 
) [static]

static void remove_from_list ( ListNode **  head,
ListNode **  tail,
ListNode task 
) [static]

Definition at line 114 of file async-getprop.c.

References _ListNode::next, and NULL.

Referenced by free_task(), maybe_free_display_data(), and move_to_completed().


Variable Documentation

ListNode* display_datas = NULL [static]

Definition at line 90 of file async-getprop.c.

ListNode* display_datas_tail = NULL [static]

Definition at line 91 of file async-getprop.c.


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