| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- // Objective-C API for talking to interfaces Go package.
- // gobind -lang=objc interfaces
- //
- // File is generated by gobind. Do not edit.
- #ifndef __Interfaces_H__
- #define __Interfaces_H__
- @import Foundation;
- #include "ref.h"
- #include "Universe.objc.h"
- @protocol InterfacesError;
- @class InterfacesError;
- @protocol InterfacesI;
- @class InterfacesI;
- @protocol InterfacesI1;
- @protocol InterfacesI2;
- @protocol InterfacesI3;
- @class InterfacesI3;
- @protocol InterfacesInterfaces;
- @class InterfacesInterfaces;
- @protocol InterfacesLargerI;
- @class InterfacesLargerI;
- @protocol InterfacesSameI;
- @class InterfacesSameI;
- @protocol InterfacesWithParam;
- @class InterfacesWithParam;
- @protocol InterfacesError <NSObject>
- - (BOOL)err:(NSError* _Nullable* _Nullable)error;
- @end
- @protocol InterfacesI <NSObject>
- - (int32_t)rand;
- @end
- /**
- * not implementable
- */
- @interface InterfacesI1 : NSObject <goSeqRefInterface> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (void)j;
- @end
- /**
- * not implementable
- */
- @interface InterfacesI2 : NSObject <goSeqRefInterface> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (void)g;
- @end
- @protocol InterfacesI3 <NSObject>
- - (InterfacesI1* _Nullable)f;
- @end
- @protocol InterfacesInterfaces <NSObject>
- - (void)someMethod;
- @end
- @protocol InterfacesLargerI <NSObject>
- - (void)anotherFunc;
- - (int32_t)rand;
- @end
- @protocol InterfacesSameI <NSObject>
- - (int32_t)rand;
- @end
- @protocol InterfacesWithParam <NSObject>
- - (void)hasParam:(BOOL)p0;
- @end
- FOUNDATION_EXPORT int32_t InterfacesAdd3(id<InterfacesI> _Nullable r);
- FOUNDATION_EXPORT BOOL InterfacesCallErr(id<InterfacesError> _Nullable e, NSError* _Nullable* _Nullable error);
- FOUNDATION_EXPORT id<InterfacesI> _Nullable InterfacesSeven(void);
- @class InterfacesError;
- @class InterfacesI;
- @class InterfacesI3;
- @class InterfacesInterfaces;
- @class InterfacesLargerI;
- @class InterfacesSameI;
- @class InterfacesWithParam;
- @interface InterfacesError : NSObject <goSeqRefInterface, InterfacesError> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (BOOL)err:(NSError* _Nullable* _Nullable)error;
- @end
- @interface InterfacesI : NSObject <goSeqRefInterface, InterfacesI> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (int32_t)rand;
- @end
- /**
- * implementable
- (the implementor has to find a source of I1s)
- */
- @interface InterfacesI3 : NSObject <goSeqRefInterface, InterfacesI3> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (InterfacesI1* _Nullable)f;
- @end
- /**
- * Interfaces is an interface with the same name as its package.
- */
- @interface InterfacesInterfaces : NSObject <goSeqRefInterface, InterfacesInterfaces> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (void)someMethod;
- @end
- @interface InterfacesLargerI : NSObject <goSeqRefInterface, InterfacesLargerI> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (void)anotherFunc;
- - (int32_t)rand;
- @end
- @interface InterfacesSameI : NSObject <goSeqRefInterface, InterfacesSameI> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (int32_t)rand;
- @end
- @interface InterfacesWithParam : NSObject <goSeqRefInterface, InterfacesWithParam> {
- }
- @property(strong, readonly) _Nonnull id _ref;
- - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- - (void)hasParam:(BOOL)p0;
- @end
- #endif
|