From ca832ee08e46d70263b1145ba7ce7f484be3623c Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Tue, 27 Oct 2015 16:46:03 +0100 Subject: [PATCH] glib-2.0: Add bindings for g_hostname_* (cherry picked from commit 1938c4659e2ed6562fa7e79f1234ac828c314918) --- vapi/glib-2.0.vapi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 39b735a0d..0d71c4891 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2741,6 +2741,14 @@ namespace GLib { N_DIRECTORIES } + namespace Hostname { + public static bool is_non_ascii (string hostname); + public static bool is_ascii_encoded (string hostname); + public static bool is_ip_address (string hostname); + public static string to_ascii (string hostname); + public static string to_unicode (string hostname); + } + namespace Path { public static bool is_absolute (string file_name); public static unowned string skip_root (string file_name); -- 2.47.2