- export gkrellm_debug() function to plugins

This commit is contained in:
Stefan Gehn 2008-12-23 20:14:11 +00:00
parent a5194a3488
commit eb074fa36e
2 changed files with 24 additions and 14 deletions

View File

@ -447,5 +447,11 @@ void win32_init_callbacks(void)
gkrellm_callbacks.gkrellm_gdk_text_markup_width = gkrellm_gdk_text_markup_width; gkrellm_callbacks.gkrellm_gdk_text_markup_width = gkrellm_gdk_text_markup_width;
gkrellm_callbacks.gkrellm_gdk_draw_string_markup = gkrellm_gdk_draw_string_markup; gkrellm_callbacks.gkrellm_gdk_draw_string_markup = gkrellm_gdk_draw_string_markup;
gkrellm_callbacks.gkrellm_gdk_draw_text_markup = gkrellm_gdk_draw_text_markup; gkrellm_callbacks.gkrellm_gdk_draw_text_markup = gkrellm_gdk_draw_text_markup;
//---------------------------------------------------------------------------
// new since 2.3.2
gkrellm_callbacks.gkrellm_debug = gkrellm_debug;
} // win32_init_callbacks() } // win32_init_callbacks()

View File

@ -576,6 +576,10 @@ typedef struct
void (*gkrellm_gdk_draw_string_markup)(GdkDrawable *drawable, PangoFontDescription *font, GdkGC *gc, gint x, gint y, gchar *string); void (*gkrellm_gdk_draw_string_markup)(GdkDrawable *drawable, PangoFontDescription *font, GdkGC *gc, gint x, gint y, gchar *string);
void (*gkrellm_gdk_draw_text_markup)(GdkDrawable *drawable, PangoFontDescription *font, GdkGC *gc, gint x, gint y, gchar *string, gint len); void (*gkrellm_gdk_draw_text_markup)(GdkDrawable *drawable, PangoFontDescription *font, GdkGC *gc, gint x, gint y, gchar *string, gint len);
//---------------------------------------------------------------------------
// new since 2.3.2
void (*gkrellm_debug)(guint debug_level, const gchar *format, ...);
} win32_plugin_callbacks; } win32_plugin_callbacks;