(_objc_load_callback): Add declaration.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 8 May 1995 22:13:53 +0000 (18:13 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 8 May 1995 22:13:53 +0000 (18:13 -0400)
From-SVN: r9593

gcc/objc/objc-api.h

index 981350f..07997d8 100644 (file)
@@ -299,6 +299,14 @@ retval_t objc_msg_sendv(id, SEL, arglist_t);
 */
 extern Class (*_objc_lookup_class)(const char *name);
 
+/*
+** This is a hook which is called by __objc_exec_class every time a class
+** or a category is loaded into the runtime.  This may e.g. help a
+** dynamic loader determine the classes that have been loaded when
+** an object file is dynamically linked in.
+*/
+extern void (*_objc_load_callback)(Class class, Category* category);
+
 extern id (*_objc_object_alloc)(Class class);
 
 extern id (*_objc_object_copy)(id object);