summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-03-01 09:44:10 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-03-01 09:44:10 +0000
commitc35ab347744adae6d8f2466464c4cc1c3b503c7d (patch)
tree7f3f497a82efcffb39cd999006a767ac81cf12fd /glib
parentdb8baf697889c80c0632d7cc91343c18a2647429 (diff)
downloadglib-c35ab347744adae6d8f2466464c4cc1c3b503c7d.tar.gz
New function that returns the message string for a Win32 error code.
2000-03-04 Tor Lillqvist <tml@iki.fi> * gwin32.c (g_win32_error_message): New function that returns the message string for a Win32 error code. * glib.h: Declare it. * glib.def: Export it, plus g_node_copy. * gmodule-win32.c: Call g_win32_error_message() to get the error message strings. * libgplugin_a.c * libgplugin_b.c * gmodule.c: Remove LibMain functions that were needed by LCC, which is not a supported compiler. * testgmodule.c (main): Test for G_MODULE_IMPL == G_MODULE_IMPL_WIN32, not G_OS_WIN32. * gmoduleconf.h.win32: Remove LCC stuff from here, too.
Diffstat (limited to 'glib')
-rw-r--r--glib/glib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/glib/glib.h b/glib/glib.h
index 463cd9a05..071453489 100644
--- a/glib/glib.h
+++ b/glib/glib.h
@@ -2905,6 +2905,12 @@ gint g_win32_closedir (DIR *dir);
*/
gchar * g_win32_getlocale (void);
+/* Translate a Win32 error code (as returned by GetLastError()) into
+ * the corresponding message. The returned string should be deallocated
+ * with g_free().
+ */
+gchar * g_win32_error_message (gint error);
+
#endif /* G_OS_WIN32 */