From 439de080e210d17c3809e096cbe8b3ac5ab21144 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 19 Sep 2006 21:15:54 +0000 Subject: Add proper UTF-8 validation of device names (both local and remote) --- common/glib-ectomy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/glib-ectomy.h') diff --git a/common/glib-ectomy.h b/common/glib-ectomy.h index 2885f019..4d00870c 100644 --- a/common/glib-ectomy.h +++ b/common/glib-ectomy.h @@ -93,6 +93,8 @@ void g_main_loop_unref(GMainLoop *loop); guint g_timeout_add(guint interval, GSourceFunc function, gpointer data); gint g_timeout_remove(const guint id); +gboolean g_utf8_validate(const gchar *str, gssize max_len, const gchar **end); + #define g_main_new(is_running) g_main_loop_new(NULL, is_running); #define g_main_run(loop) g_main_loop_run(loop) #define g_main_quit(loop) g_main_loop_quit(loop) -- cgit