]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add Windows compatibility functions
authorMatias De la Puente <mfpuente.ar@gmail.com>
Tue, 2 Jun 2009 17:42:00 +0000 (14:42 -0300)
committerJürg Billeter <j@bitron.ch>
Wed, 8 Jul 2009 18:13:58 +0000 (19:13 +0100)
Fixes bug 584636.

Signed-off-by: Matias De la Puente <mfpuente.ar@gmail.com>
vapi/glib-2.0.vapi

index cbba20ce6d2de12b3362508c0b6c3c1486a28cd1..fa225e020c099598f9b507c80827197934f99ea2 100644 (file)
@@ -3389,4 +3389,16 @@ namespace GLib {
                [CCode (cname = "g_pattern_match_simple")]
                public static bool match_simple (string pattern, string str);
        }
+
+       namespace Win32 {
+               public string error_message (int error);
+               public string getlocale ();
+               public string get_package_installation_directory_of_module (void* hmodule);
+               public uint get_windows_version ();
+               public string locale_filename_from_utf8 (string utf8filename);
+               [CCode (cname = "G_WIN32_HAVE_WIDECHAR_API")]
+               public bool have_widechar_api ();
+               [CCode (cname = "G_WIN32_IS_NT_BASED")]
+               public bool is_nt_based ();
+       }
 }