[prev] [thread] [next] [lurker] [Date index for 2006/10/18]
Related: shutup_glib.c: typedef char gchar; typedef void* gpointer; typedef enum { /* log flags */ G_LOG_FLAG_RECURSION = 1 << 0, G_LOG_FLAG_FATAL = 1 << 1, /* GLib log levels */ G_LOG_LEVEL_ERROR = 1 << 2, /* always fatal */ G_LOG_LEVEL_CRITICAL = 1 << 3, G_LOG_LEVEL_WARNING = 1 << 4, G_LOG_LEVEL_MESSAGE = 1 << 5, G_LOG_LEVEL_INFO = 1 << 6, G_LOG_LEVEL_DEBUG = 1 << 7, G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL) } GLogLevelFlags; void g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data) { return; } prompt> gcc -shared -fpic -ldl -o shutup_glib.so shutup_glib.c prompt> export LD_PRELOAD=./shutup_glib.so This gets rid of the lion's share of the spew. Sad that I'm reduced to this. -josh
Generated at 16:01 on 02 Nov 2006 by mariachi 0.52