ObjFW
Loading...
Searching...
No Matches
amiga-library-glue.h
1/*
2 * Copyright (c) 2008-2026 Jonathan Schleifer <js@nil.im>
3 *
4 * All rights reserved.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License version 3.0 only,
8 * as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * version 3.0 for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * version 3.0 along with this program. If not, see
17 * <https://www.gnu.org/licenses/>.
18 */
19
20/* This file is automatically generated from amiga-library.xml */
21
22#import "ObjFWRT.h"
23#import "private.h"
24
25extern bool glue_objc_init(unsigned int version, struct objc_linklib_context *_Nonnull ctx);
26extern void glue___objc_exec_class(struct objc_module *_Nonnull module);
27extern IMP _Nonnull glue_objc_msg_lookup(id _Nullable object, SEL _Nonnull selector);
28extern IMP _Nonnull glue_objc_msg_lookup_stret(id _Nullable object, SEL _Nonnull selector);
29extern IMP _Nonnull glue_objc_msg_lookup_super(struct objc_super *_Nonnull super, SEL _Nonnull selector);
30extern IMP _Nonnull glue_objc_msg_lookup_super_stret(struct objc_super *_Nonnull super, SEL _Nonnull selector);
31extern Class _Nullable glue_objc_lookUpClass(const char *_Nonnull name);
32extern Class _Nullable glue_objc_getClass(const char *_Nonnull name);
33extern Class _Nonnull glue_objc_getRequiredClass(const char *_Nonnull name);
34extern Class _Nullable glue_objc_lookup_class(const char *_Nonnull name);
35extern Class _Nonnull glue_objc_get_class(const char *_Nonnull name);
36extern void glue_objc_exception_throw(id _Nonnull object);
37extern int glue_objc_sync_enter(id _Nullable object);
38extern int glue_objc_sync_exit(id _Nullable object);
39extern id _Nullable glue_objc_getProperty(id _Nonnull self, SEL _Nonnull _cmd, ptrdiff_t offset, bool atomic);
40extern void glue_objc_setProperty(id _Nonnull self, SEL _Nonnull _cmd, ptrdiff_t offset, id _Nullable value, bool atomic, signed char copy);
41extern void glue_objc_getPropertyStruct(void *_Nonnull dest, const void *_Nonnull src, ptrdiff_t size, bool atomic, bool strong);
42extern void glue_objc_setPropertyStruct(void *_Nonnull dest, const void *_Nonnull src, ptrdiff_t size, bool atomic, bool strong);
43extern void glue_objc_enumerationMutation(id _Nonnull object);
44extern int glue___gnu_objc_personality_v0(int version, int actions, uint64_t _Nonnull exClass, void *_Nonnull ex, void *_Nonnull ctx);
45extern id _Nullable glue_objc_retain(id _Nullable object);
46extern id _Nullable glue_objc_retainBlock(id _Nullable block);
47extern id _Nullable glue_objc_retainAutorelease(id _Nullable object);
48extern void glue_objc_release(id _Nullable object);
49extern id _Nullable glue_objc_autorelease(id _Nullable object);
50extern id _Nullable glue_objc_autoreleaseReturnValue(id _Nullable object);
51extern id _Nullable glue_objc_retainAutoreleaseReturnValue(id _Nullable object);
52extern id _Nullable glue_objc_retainAutoreleasedReturnValue(id _Nullable object);
53extern id _Nullable glue_objc_storeStrong(id _Nullable *_Nonnull object, id _Nullable value);
54extern id _Nullable glue_objc_storeWeak(id _Nullable *_Nonnull object, id _Nullable value);
55extern id _Nullable glue_objc_loadWeakRetained(id _Nullable *_Nonnull object);
56extern id _Nullable glue_objc_initWeak(id _Nullable *_Nonnull object, id _Nullable value);
57extern void glue_objc_destroyWeak(id _Nullable *_Nonnull object);
58extern id _Nullable glue_objc_loadWeak(id _Nullable *_Nonnull object);
59extern void glue_objc_copyWeak(id _Nullable *_Nonnull dest, id _Nullable *_Nonnull src);
60extern void glue_objc_moveWeak(id _Nullable *_Nonnull dest, id _Nullable *_Nonnull src);
61extern SEL _Nonnull glue_sel_registerName(const char *_Nonnull name);
62extern const char *_Nonnull glue_sel_getName(SEL _Nonnull selector);
63extern bool glue_sel_isEqual(SEL _Nonnull selector1, SEL _Nonnull selector2);
64extern Class _Nonnull glue_objc_allocateClassPair(Class _Nullable superclass, const char *_Nonnull name, size_t extraBytes);
65extern void glue_objc_registerClassPair(Class _Nonnull class_);
66extern unsigned int glue_objc_getClassList(Class _Nonnull *_Nullable buffer, unsigned int count);
67extern Class _Nonnull *_Nonnull glue_objc_copyClassList(unsigned int *_Nullable length);
68extern bool glue_class_isMetaClass(Class _Nullable class_);
69extern const char *_Nullable glue_class_getName(Class _Nullable class_);
70extern Class _Nullable glue_class_getSuperclass(Class _Nullable class_);
71extern unsigned long glue_class_getInstanceSize(Class _Nullable class_);
72extern bool glue_class_respondsToSelector(Class _Nullable class_, SEL _Nonnull selector);
73extern bool glue_class_conformsToProtocol(Class _Nullable class_, Protocol *_Nonnull p);
74extern IMP _Nullable glue_class_getMethodImplementation(Class _Nullable class_, SEL _Nonnull selector);
75extern IMP _Nullable glue_class_getMethodImplementation_stret(Class _Nullable class_, SEL _Nonnull selector);
76#if defined(OF_MORPHOS)
77extern const char *_Nullable glue__class_getMethodTypeEncoding(Class _Nullable class_, SEL _Nonnull selector);
78#endif
79extern bool glue_class_addMethod(Class _Nonnull class_, SEL _Nonnull selector, IMP _Nonnull implementation, const char *_Nullable typeEncoding);
80extern IMP _Nullable glue_class_replaceMethod(Class _Nonnull class_, SEL _Nonnull selector, IMP _Nonnull implementation, const char *_Nullable typeEncoding);
81extern Class _Nullable glue_object_getClass(id _Nullable object);
82extern Class _Nullable glue_object_setClass(id _Nullable object, Class _Nonnull class_);
83extern const char *_Nullable glue_object_getClassName(id _Nullable object);
84extern const char *_Nonnull glue_protocol_getName(Protocol *_Nonnull protocol);
85extern bool glue_protocol_isEqual(Protocol *_Nonnull protocol1, Protocol *_Nonnull protocol2);
86extern bool glue_protocol_conformsToProtocol(Protocol *_Nonnull protocol1, Protocol *_Nonnull protocol2);
87extern _Nullable objc_uncaught_exception_handler glue_objc_setUncaughtExceptionHandler(objc_uncaught_exception_handler _Nullable handler);
88extern void glue_objc_setForwardHandler(IMP _Nullable forward, IMP _Nullable stretForward);
89extern void glue_objc_setEnumerationMutationHandler(objc_enumeration_mutation_handler _Nullable handler);
90#if defined(OF_MORPHOS)
91extern void glue__objc_zeroWeakReferences(id _Nullable value);
92#endif
93extern void glue_objc_deinit(void);
94extern Ivar _Nullable *_Nullable glue_class_copyIvarList(Class _Nullable class_, unsigned int *_Nullable outCount);
95extern const char *_Nonnull glue_ivar_getName(Ivar _Nonnull ivar);
96extern const char *_Nonnull glue_ivar_getTypeEncoding(Ivar _Nonnull ivar);
97extern ptrdiff_t glue_ivar_getOffset(Ivar _Nonnull ivar);
98extern void glue_class_registerAlias_np(Class _Nonnull class_, const char *_Nonnull name);
99extern Method _Nullable glue_class_getInstanceMethod(Class _Nullable class_, SEL _Nonnull selector);
100extern Method _Nullable *_Nullable glue_class_copyMethodList(Class _Nullable class_, unsigned int *_Nullable outCount);
101extern SEL _Nonnull glue_method_getName(Method _Nonnull method);
102extern const char *_Nullable glue_method_getTypeEncoding(Method _Nonnull method);
103extern objc_property_t _Nullable *_Nullable glue_class_copyPropertyList(Class _Nullable class_, unsigned int *_Nullable outCount);
104extern const char *_Nonnull glue_property_getName(objc_property_t _Nonnull property);
105extern char *_Nullable glue_property_copyAttributeValue(objc_property_t _Nonnull property, const char *_Nonnull name);
106extern id _Nullable glue_objc_constructInstance(Class _Nullable class_, void *_Nullable bytes);
107extern void *_Nullable glue_objc_destructInstance(id _Nullable object);
108extern id _Nullable glue_class_createInstance(Class _Nullable class_, size_t extraBytes);
109extern id _Nullable glue_object_dispose(id _Nullable object);
110extern id _Nonnull glue__objc_rootRetain(id _Nonnull object);
111extern unsigned int glue__objc_rootRetainCount(id _Nonnull object);
112extern void glue__objc_rootRelease(id _Nonnull object);
113extern void *_Null_unspecified glue_objc_autoreleasePoolPush(void);
114extern void glue_objc_autoreleasePoolPop(void *_Null_unspecified pool);
115extern id _Nullable glue__objc_rootAutorelease(id _Nullable object);
116extern void glue_objc_setTaggedPointerSecret(uintptr_t secret);
117extern int glue_objc_registerTaggedPointerClass(Class _Nonnull class_);
118extern bool glue_object_isTaggedPointer(id _Nullable object);
119extern uintptr_t glue_object_getTaggedPointerValue(id _Nonnull object);
120extern id _Nullable glue_objc_createTaggedPointer(int class_, uintptr_t value);
121extern void glue_objc_setAssociatedObject(id _Nonnull object, const void *_Nonnull key, id _Nullable value, objc_associationPolicy policy);
122extern id _Nullable glue_objc_getAssociatedObject(id _Nonnull object, const void *_Nonnull key);
123extern void glue_objc_removeAssociatedObjects(id _Nonnull object);
const struct objc_property * objc_property_t
A property.
Definition ObjFWRT.h:128
id(* IMP)(id object, SEL selector,...)
A method implementation.
Definition ObjFWRT.h:146
const struct objc_ivar * Ivar
An instance variable.
Definition ObjFWRT.h:123
void(* objc_uncaught_exception_handler)(id exception)
A handler for uncaught exceptions.
Definition ObjFWRT.h:153
void(* objc_enumeration_mutation_handler)(id object)
A handler for mutation during enumeration.
Definition ObjFWRT.h:160
const struct objc_method * Method
A method.
Definition ObjFWRT.h:109
objc_associationPolicy
A policy for object association, see objc_setAssociatedObject.
Definition ObjFWRT.h:183
A struct representing a call to super.
Definition ObjFWRT.h:165