X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Faccess.h;h=4197126f8ae758da42035772ae3726725d32e409;hb=9f859ad50d3d5d98c185d40b86b2179bc4dc9aeb;hp=d46cd4f161a7cbc905862744edb0827795491f94;hpb=d362a578296d95d99d4c996a12d116ecbb809866;p=cacao.git diff --git a/src/vm/access.h b/src/vm/access.h index d46cd4f16..4197126f8 100644 --- a/src/vm/access.h +++ b/src/vm/access.h @@ -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, @@ -22,10 +22,9 @@ 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