X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Ferror.h;h=1465b76c56d04ff6c841f79ba6ed8d6770220ff9;hb=6be008c409153a82e80394b98c93564e2cdb2309;hp=c6be963fe1003a4cd1ccbaa3968449a97ea56588;hpb=f736e972b4b29256128a2e0d4d24ebec46db030f;p=mono.git diff --git a/mono/io-layer/error.h b/mono/io-layer/error.h index c6be963fe10..1465b76c56d 100644 --- a/mono/io-layer/error.h +++ b/mono/io-layer/error.h @@ -12,6 +12,7 @@ typedef enum { ERROR_SUCCESS = 0, + NO_ERROR = 0, ERROR_INVALID_FUNCTION = 1, ERROR_FILE_NOT_FOUND = 2, ERROR_PATH_NOT_FOUND = 3, @@ -1792,11 +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); -extern guint32 errno_to_WSA (guint32 code, const char *function_name); +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_ */