Go to the source code of this file.
Defines | |
| #define | _GNU_SOURCE |
| #define | _POSIX_C_SOURCE |
Functions | |
| void | meta_print_backtrace (void) |
| static void | ensure_logfile (void) |
| gboolean | meta_is_verbose (void) |
| void | meta_set_verbose (gboolean setting) |
| gboolean | meta_is_debugging (void) |
| void | meta_set_debugging (gboolean setting) |
| gboolean | meta_get_replace_current_wm (void) |
| void | meta_set_replace_current_wm (gboolean setting) |
| char * | meta_g_utf8_strndup (const gchar *src, gsize n) |
| static int | utf8_fputs (const char *str, FILE *f) |
| void | meta_free_gslist_and_elements (GSList *list_to_deep_free) |
| void | meta_debug_spew_real (const char *format,...) |
| void | meta_verbose_real (const char *format,...) |
| static const char * | topic_name (MetaDebugTopic topic) |
| void | meta_topic_real (MetaDebugTopic topic, const char *format,...) |
| void | meta_bug (const char *format,...) |
| void | meta_warning (const char *format,...) |
| void | meta_fatal (const char *format,...) |
| void | meta_push_no_msg_prefix (void) |
| void | meta_pop_no_msg_prefix (void) |
| void | meta_exit (MetaExitCode code) |
| gint | meta_unsigned_long_equal (gconstpointer v1, gconstpointer v2) |
| guint | meta_unsigned_long_hash (gconstpointer v) |
| const char * | meta_gravity_to_string (int gravity) |
Variables | |
| static gboolean | is_verbose = FALSE |
| static gboolean | is_debugging = FALSE |
| static gboolean | replace_current = FALSE |
| static int | no_prefix = 0 |
| static FILE * | logfile = NULL |
| static int | sync_count = 0 |
| static void ensure_logfile | ( | void | ) | [static] |
Definition at line 80 of file util.c.
References _, logfile, meta_warning(), and NULL.
Referenced by meta_set_debugging(), and meta_set_verbose().
| void meta_bug | ( | const char * | format, | |
| ... | ||||
| ) |
Definition at line 369 of file util.c.
References _, logfile, meta_print_backtrace(), no_prefix, NULL, and utf8_fputs().
Referenced by get_window(), handle_preference_init_string(), meta_core_get(), meta_display_close(), meta_display_ungrab(), meta_frame_layout_calc_geometry(), meta_frames_get_geometry(), meta_prefs_remove_listener(), meta_prop_get_values(), meta_screen_calc_workspace_layout(), meta_session_init(), meta_stack_add(), meta_stack_remove(), meta_window_free(), meta_workspace_get_neighbor(), meta_workspace_index(), process_event(), recalc_window_type(), stack_sync_to_server(), x_error_handler(), and x_io_error_handler().
| void meta_debug_spew_real | ( | const char * | format, | |
| ... | ||||
| ) |
Definition at line 218 of file util.c.
References _, is_debugging, logfile, no_prefix, NULL, and utf8_fputs().
| void meta_exit | ( | MetaExitCode | code | ) |
| void meta_fatal | ( | const char * | format, | |
| ... | ||||
| ) |
Definition at line 430 of file util.c.
References _, logfile, meta_exit(), META_EXIT_ERROR, no_prefix, NULL, and utf8_fputs().
Referenced by main(), meta_set_verbose(), and meta_ui_init().
| void meta_free_gslist_and_elements | ( | GSList * | list_to_deep_free | ) |
Definition at line 208 of file util.c.
References NULL.
Referenced by meta_window_free(), and meta_window_update_struts().
| char* meta_g_utf8_strndup | ( | const gchar * | src, | |
| gsize | n | |||
| ) |
| gboolean meta_get_replace_current_wm | ( | void | ) |
| const char* meta_gravity_to_string | ( | int | gravity | ) |
Definition at line 501 of file util.c.
Referenced by process_keyboard_resize_grab(), save_state(), setup_constraint_info(), and start_element_handler().
| gboolean meta_is_debugging | ( | void | ) |
Definition at line 146 of file util.c.
References is_debugging.
Referenced by meta_change_button_grab(), meta_change_keygrab(), meta_theme_load(), and ungrab_all_keys().
| gboolean meta_is_verbose | ( | void | ) |
Definition at line 126 of file util.c.
References is_verbose.
Referenced by cache_edges(), do_screen_and_xinerama_relative_constraints(), event_callback(), get_possible_matches(), meta_screen_calc_workspace_layout(), meta_spew_event(), meta_window_client_message(), and update_net_wm_type().
| void meta_pop_no_msg_prefix | ( | void | ) |
Definition at line 466 of file util.c.
References no_prefix.
Referenced by meta_screen_calc_workspace_layout(), and stack_sync_to_server().
| void meta_print_backtrace | ( | void | ) |
Definition at line 43 of file util.c.
Referenced by log_handler(), meta_bug(), and timestamp_too_old().
| void meta_push_no_msg_prefix | ( | void | ) |
Definition at line 460 of file util.c.
References no_prefix.
Referenced by meta_screen_calc_workspace_layout(), and stack_sync_to_server().
| void meta_set_debugging | ( | gboolean | setting | ) |
Definition at line 152 of file util.c.
References ensure_logfile(), and is_debugging.
Referenced by main().
| void meta_set_replace_current_wm | ( | gboolean | setting | ) |
| void meta_set_verbose | ( | gboolean | setting | ) |
Definition at line 132 of file util.c.
References _, ensure_logfile(), is_verbose, and meta_fatal().
Referenced by event_callback(), and main().
| void meta_topic_real | ( | MetaDebugTopic | topic, | |
| const char * | format, | |||
| ... | ||||
| ) |
Definition at line 332 of file util.c.
References is_verbose, logfile, META_DEBUG_SYNC, no_prefix, NULL, sync_count, topic_name(), and utf8_fputs().
| gint meta_unsigned_long_equal | ( | gconstpointer | v1, | |
| gconstpointer | v2 | |||
| ) |
| guint meta_unsigned_long_hash | ( | gconstpointer | v | ) |
| void meta_verbose_real | ( | const char * | format, | |
| ... | ||||
| ) |
Definition at line 247 of file util.c.
References is_verbose, logfile, no_prefix, NULL, and utf8_fputs().
| void meta_warning | ( | const char * | format, | |
| ... | ||||
| ) |
Definition at line 402 of file util.c.
References _, logfile, no_prefix, NULL, and utf8_fputs().
Referenced by change_notify(), cleanup_error(), delete_ping_timeout_func(), effects_draw_box_animation_timeout(), enable_compositor(), ensure_logfile(), ensure_work_areas_validated(), error_on_command(), error_on_generic_command(), error_on_terminal_command(), event_callback(), handle_preference_init_enum(), handle_preference_init_int(), handle_preference_update_bool(), handle_preference_update_enum(), handle_preference_update_int(), handle_preference_update_string(), io_from_ping_dialog(), load_state(), log_handler(), main(), maybe_give_disable_workarounds_warning(), menu_callback(), merge_spanning_rects_in_region(), meta_change_keygrab(), meta_core_get(), meta_display_begin_grab_op(), meta_display_for_x_display(), meta_display_ping_window(), meta_frames_unmanage_window(), meta_prefs_change_workspace_name(), meta_prefs_set_num_workspaces(), meta_rectangle_clamp_to_fit_into_region(), meta_rectangle_clip_to_region(), meta_rectangle_shove_into_region(), meta_screen_free(), meta_screen_new(), meta_screen_update_workspace_layout(), meta_stack_set_positions(), meta_theme_earliest_version_with_button(), meta_theme_set_current(), meta_window_client_message(), meta_window_kill(), meta_window_menu_popup(), meta_window_raise(), meta_workspace_focus_default_window(), mouse_button_mods_handler(), parse_dialog_output(), parse_size_unchecked(), parse_x_position_unchecked(), parse_y_position_unchecked(), pid_from_string(), process_property_notify(), process_request_frame_extents(), process_workspace_switch_grab(), recalc_window_features(), reload_net_wm_pid(), reload_transient_for(), sanity_check_timestamps(), save_state(), setup_constraint_info(), timestamp_too_old(), titlebar_handler(), update_binding(), update_list_binding(), update_sm_hints(), utf8_list_from_results(), utf8_string_from_results(), validate_or_free_results(), warn_about_lame_clients_and_finish_interact(), window_activate(), window_from_string(), and x_io_error_handler().
| static const char* topic_name | ( | MetaDebugTopic | topic | ) | [static] |
Definition at line 276 of file util.c.
References META_DEBUG_COMPOSITOR, META_DEBUG_EDGE_RESISTANCE, META_DEBUG_ERRORS, META_DEBUG_EVENTS, META_DEBUG_FOCUS, META_DEBUG_GEOMETRY, META_DEBUG_GROUPS, META_DEBUG_KEYBINDINGS, META_DEBUG_PING, META_DEBUG_PLACEMENT, META_DEBUG_PREFS, META_DEBUG_RESIZING, META_DEBUG_SHAPES, META_DEBUG_SM, META_DEBUG_STACK, META_DEBUG_STARTUP, META_DEBUG_SYNC, META_DEBUG_THEMES, META_DEBUG_WINDOW_OPS, META_DEBUG_WINDOW_STATE, META_DEBUG_WORKAREA, and META_DEBUG_XINERAMA.
Referenced by meta_topic_real().
| static int utf8_fputs | ( | const char * | str, | |
| FILE * | f | |||
| ) | [static] |
Definition at line 189 of file util.c.
References NULL.
Referenced by meta_bug(), meta_debug_spew_real(), meta_fatal(), meta_topic_real(), meta_verbose_real(), and meta_warning().
gboolean is_debugging = FALSE [static] |
Definition at line 72 of file util.c.
Referenced by meta_debug_spew_real(), meta_is_debugging(), and meta_set_debugging().
gboolean is_verbose = FALSE [static] |
Definition at line 71 of file util.c.
Referenced by meta_is_verbose(), meta_set_verbose(), meta_topic_real(), and meta_verbose_real().
FILE* logfile = NULL [static] |
Definition at line 77 of file util.c.
Referenced by ensure_logfile(), meta_bug(), meta_debug_spew_real(), meta_fatal(), meta_topic_real(), meta_verbose_real(), and meta_warning().
int no_prefix = 0 [static] |
Definition at line 74 of file util.c.
Referenced by meta_bug(), meta_debug_spew_real(), meta_fatal(), meta_pop_no_msg_prefix(), meta_push_no_msg_prefix(), meta_topic_real(), meta_verbose_real(), and meta_warning().
gboolean replace_current = FALSE [static] |
Definition at line 73 of file util.c.
Referenced by meta_get_replace_current_wm(), and meta_set_replace_current_wm().
int sync_count = 0 [static] |
1.5.5