* Removed all Id tags.
[cacao.git] / src / vm / access.h
index d46cd4f161a7cbc905862744edb0827795491f94..4197126f8ae758da42035772ae3726725d32e409 100644 (file)
@@ -1,4 +1,4 @@
-/* src/vmcore/access.h - checking access rights
+/* src/vm/access.h - checking access rights
 
    Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: access.h 7246 2007-01-29 18:49:05Z twisti $
-
 */
 
+
 #ifndef _ACCESS_H
 #define _ACCESS_H
 
@@ -35,6 +34,8 @@
 #include "vm/global.h"
 
 #include "vmcore/class.h"
+#include "vmcore/field.h"
+#include "vmcore/method.h"
 
 
 /* macros *********************************************************************/
@@ -51,10 +52,12 @@ bool access_is_accessible_class(classinfo *referer, classinfo *cls);
 bool access_is_accessible_member(classinfo *referer, classinfo *declarer,
                                                                 s4 memberflags);
 
-bool access_check_caller(classinfo *declarer, s4 memberflags, s4 calldepth);
+bool access_check_field(fieldinfo *f, s4 calldepth);
+bool access_check_method(methodinfo *m, s4 calldepth);
 
 #endif /* _ACCESS_H */
 
+
 /*
  * These are local overrides for various environment variables in Emacs.
  * Please do not remove this and leave it at the end of the file, where