From 7d44a3313c9be065f962975b362d29684bcd3418 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sat, 9 Feb 2008 22:54:14 +0100 Subject: Objective-C layer: Add functions for class creation. darcs-hash:d604bd4a63ca384220760be319d64759ebbd9517 --- Objective-C/libobjcl.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Objective-C/libobjcl.h') diff --git a/Objective-C/libobjcl.h b/Objective-C/libobjcl.h index afe9f56..56654fc 100644 --- a/Objective-C/libobjcl.h +++ b/Objective-C/libobjcl.h @@ -45,6 +45,7 @@ typedef struct objc_ivar *IVAR_T; #ifdef HAVE_SYS_SEM_H #include +#ifndef __APPLE__ /* According to the Single Unix Specification, Version 3, the semun union type must be defined by the application writer as follows: */ union semun @@ -54,6 +55,7 @@ union semun unsigned short *array; /* Array for GETALL, SETALL */ }; #endif +#endif extern NSException *objcl_oom_exception; extern id objcl_current_exception; @@ -174,3 +176,24 @@ objcl_release_lock (void *lock); void objcl_initialise_lock (void **lock); + +Class +objcl_create_class (const char *class_name, + const char *superclass, + int protocol_number, + const char *protocol_names[], + int ivar_number, + const char *ivar_names[], + const char *ivar_typespecs[]); + +void +objcl_add_method (Class class, + SEL method_name, + IMP callback, + int argc, + const char *return_typespec, + const char *arg_typespecs[], + const char *signature); + +void +objcl_finalise_class (Class class); -- cgit v1.2.3