-/* 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
#include "vm/global.h"
#include "vmcore/class.h"
+#include "vmcore/field.h"
+#include "vmcore/method.h"
/* macros *********************************************************************/
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