]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add bindings for g_hostname_*
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 27 Oct 2015 15:46:03 +0000 (16:46 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 27 Oct 2015 18:20:52 +0000 (19:20 +0100)
(cherry picked from commit 1938c4659e2ed6562fa7e79f1234ac828c314918)

vapi/glib-2.0.vapi

index 39b735a0de4dcb7b13a7159cd1d10c8d3b372072..0d71c4891a073b555cfa11bc3a82bb8ca6f44063 100644 (file)
@@ -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);