X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fbtls%2Fbtls-error.c;h=3d81b32f341fb8cdda66cca272876624fde5d71e;hb=HEAD;hp=8ed950c7e66b7c2229dd24c0cc8bf8ec6b17e266;hpb=633af27d6800a6a5c050c9e4c50a0d8b67c97c20;p=mono.git diff --git a/mono/btls/btls-error.c b/mono/btls/btls-error.c index 8ed950c7e66..3d81b32f341 100644 --- a/mono/btls/btls-error.c +++ b/mono/btls/btls-error.c @@ -7,27 +7,40 @@ // #include +#include #include -int +MONO_API int mono_btls_error_peek_error (void) { return ERR_peek_error (); } -int +MONO_API int mono_btls_error_get_error (void) { return ERR_get_error (); } -void +MONO_API int +mono_btls_error_peek_error_line (const char **file, int *line) +{ + return ERR_peek_error_line (file, line); +} + +MONO_API int +mono_btls_error_get_error_line (const char **file, int *line) +{ + return ERR_get_error_line (file, line); +} + +MONO_API void mono_btls_error_clear_error (void) { ERR_clear_error (); } -void +MONO_API void mono_btls_error_get_error_string_n (int error, char *buf, int len) { ERR_error_string_n (error, buf, len);