util.c File Reference

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


Define Documentation

#define _GNU_SOURCE

Definition at line 25 of file util.c.

#define _POSIX_C_SOURCE

Definition at line 26 of file util.c.


Function Documentation

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,
  ... 
)

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  ) 

Definition at line 474 of file util.c.

Referenced by main(), and meta_fatal().

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 
)

Definition at line 175 of file util.c.

Referenced by set_title_text(), and tab_entry_new().

gboolean meta_get_replace_current_wm ( void   ) 

Definition at line 163 of file util.c.

References replace_current.

Referenced by meta_screen_new().

const char* meta_gravity_to_string ( int  gravity  ) 

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   ) 

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  ) 

Definition at line 169 of file util.c.

References replace_current.

Referenced by main().

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 
)

Definition at line 481 of file util.c.

Referenced by meta_group_new().

guint meta_unsigned_long_hash ( gconstpointer  v  ) 

Definition at line 488 of file util.c.

Referenced by meta_group_new().

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]

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().


Variable Documentation

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]

int no_prefix = 0 [static]

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]

Definition at line 329 of file util.c.

Referenced by meta_topic_real().


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