Use mono_dl_open_runtime_lib as an additional fallback for loading the profiler....
[mono.git] / mono / utils / mono-error.h
index b38c7ece226ad1ef3f53534f3bddaace59f83e4f..5652432adb15282bd0dc121df65e50604e9f81b5 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __MONO_ERROR_H__
 #define __MONO_ERROR_H__
 
+#include <mono/utils/mono-publib.h>
+
 enum {
        /*
        The supplied strings were dup'd by means of calling mono_error_dup_strings.
@@ -21,11 +23,13 @@ enum {
        MONO_ERROR_FILE_NOT_FOUND = 4,
        MONO_ERROR_BAD_IMAGE = 5,
        MONO_ERROR_OUT_OF_MEMORY = 6,
+       MONO_ERROR_ARGUMENT = 7,
+       MONO_ERROR_NOT_VERIFIABLE = 8,
        /*
         * This is a generic error mechanism is you need to raise an arbitrary corlib exception.
         * You must pass the exception name otherwise prepare_exception will fail with internal execution. 
         */
-       MONO_ERROR_GENERIC = 7
+       MONO_ERROR_GENERIC = 9
 };
 
 /*Keep in sync with MonoErrorInternal*/
@@ -37,22 +41,26 @@ typedef struct {
     char hidden_2 [128]; /*DON'T TOUCH */
 } MonoError;
 
-void
+MONO_BEGIN_DECLS
+
+MONO_API void
 mono_error_init (MonoError *error);
 
-void
+MONO_API void
 mono_error_init_flags (MonoError *error, unsigned short flags);
 
-void
+MONO_API void
 mono_error_cleanup (MonoError *error);
 
-gboolean
+MONO_API mono_bool
 mono_error_ok (MonoError *error);
 
-unsigned short
+MONO_API unsigned short
 mono_error_get_error_code (MonoError *error);
 
-const char*
+MONO_API const char*
 mono_error_get_message (MonoError *error);
 
+MONO_END_DECLS
+
 #endif