[sgen] Jobs for scanning from registered roots.
[mono.git] / mono / io-layer / error.h
index f900a7172a3353d6714c4ff91a1a8f28510b3f79..1465b76c56d04ff6c841f79ba6ed8d6770220ff9 100644 (file)
@@ -1,8 +1,18 @@
+/*
+ * error.h:  Error reporting
+ *
+ * Author:
+ *     Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
 #ifndef _WAPI_ERROR_H_
 #define _WAPI_ERROR_H_
 
 typedef enum {
        ERROR_SUCCESS = 0,
+       NO_ERROR = 0,
        ERROR_INVALID_FUNCTION = 1,
        ERROR_FILE_NOT_FOUND = 2,
        ERROR_PATH_NOT_FOUND = 3,
@@ -1783,10 +1793,17 @@ typedef enum {
        ERROR_SXS_UNTRANSLATABLE_HRESULT = 14077,
        ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING = 14078,
        ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE = 14079,
-       ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME = 14080,
+       ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME = 14080
 } WapiError;
 
-extern guint32 GetLastError(void);
-extern void SetLastError(guint32 code);
+G_BEGIN_DECLS
+
+guint32 GetLastError (void);
+void SetLastError (guint32 code);
+guint32 errno_to_WSA (guint32 code, const char *function_name);
+gint _wapi_get_win32_file_error (gint err);
+void _wapi_error_cleanup (void);
+
+G_END_DECLS
 
 #endif /* _WAPI_ERROR_H_ */