[handle] Make handle.h use exclusively public headers and MONO_API functions
authorLudovic Henry <ludovic@xamarin.com>
Wed, 6 Jan 2016 13:50:56 +0000 (13:50 +0000)
committerLudovic Henry <ludovic@xamarin.com>
Wed, 13 Jan 2016 13:11:43 +0000 (13:11 +0000)
mono/metadata/handle.h

index e15d763522e3a16e8d380afc2812abb9a2da095d..03b82a897fe2845debd016426110f55f902fa9a7 100644 (file)
 #include <config.h>
 #include <glib.h>
 
-#include "object.h"
-#include "class.h"
-#include "class-internals.h"
-#include "threads-types.h"
-#include "handle-arena.h"
-
-#include "mono/utils/mono-threads-coop.h"
+#include <mono/metadata/object.h>
+#include <mono/metadata/class.h>
 
 G_BEGIN_DECLS
 
@@ -100,13 +95,13 @@ mono_handle_check_in_critical_section ()
 static inline MonoClass*
 mono_handle_class (MonoHandle handle)
 {
-       return handle->obj->vtable->klass;
+       return mono_object_get_class (handle->obj);
 }
 
 static inline MonoDomain*
 mono_handle_domain (MonoHandle handle)
 {
-       return handle->obj->vtable->domain;
+       return mono_object_get_domain (handle->obj);
 }
 
 #define MONO_HANDLE_TYPE_DECL(type)      typedef struct { type *obj; } type ## HandleStorage ; \