interfaces.objc.h.golden 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // Objective-C API for talking to interfaces Go package.
  2. // gobind -lang=objc interfaces
  3. //
  4. // File is generated by gobind. Do not edit.
  5. #ifndef __Interfaces_H__
  6. #define __Interfaces_H__
  7. @import Foundation;
  8. #include "ref.h"
  9. #include "Universe.objc.h"
  10. @protocol InterfacesError;
  11. @class InterfacesError;
  12. @protocol InterfacesI;
  13. @class InterfacesI;
  14. @protocol InterfacesI1;
  15. @protocol InterfacesI2;
  16. @protocol InterfacesI3;
  17. @class InterfacesI3;
  18. @protocol InterfacesInterfaces;
  19. @class InterfacesInterfaces;
  20. @protocol InterfacesLargerI;
  21. @class InterfacesLargerI;
  22. @protocol InterfacesSameI;
  23. @class InterfacesSameI;
  24. @protocol InterfacesWithParam;
  25. @class InterfacesWithParam;
  26. @protocol InterfacesError <NSObject>
  27. - (BOOL)err:(NSError* _Nullable* _Nullable)error;
  28. @end
  29. @protocol InterfacesI <NSObject>
  30. - (int32_t)rand;
  31. @end
  32. /**
  33. * not implementable
  34. */
  35. @interface InterfacesI1 : NSObject <goSeqRefInterface> {
  36. }
  37. @property(strong, readonly) _Nonnull id _ref;
  38. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  39. - (void)j;
  40. @end
  41. /**
  42. * not implementable
  43. */
  44. @interface InterfacesI2 : NSObject <goSeqRefInterface> {
  45. }
  46. @property(strong, readonly) _Nonnull id _ref;
  47. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  48. - (void)g;
  49. @end
  50. @protocol InterfacesI3 <NSObject>
  51. - (InterfacesI1* _Nullable)f;
  52. @end
  53. @protocol InterfacesInterfaces <NSObject>
  54. - (void)someMethod;
  55. @end
  56. @protocol InterfacesLargerI <NSObject>
  57. - (void)anotherFunc;
  58. - (int32_t)rand;
  59. @end
  60. @protocol InterfacesSameI <NSObject>
  61. - (int32_t)rand;
  62. @end
  63. @protocol InterfacesWithParam <NSObject>
  64. - (void)hasParam:(BOOL)p0;
  65. @end
  66. FOUNDATION_EXPORT int32_t InterfacesAdd3(id<InterfacesI> _Nullable r);
  67. FOUNDATION_EXPORT BOOL InterfacesCallErr(id<InterfacesError> _Nullable e, NSError* _Nullable* _Nullable error);
  68. FOUNDATION_EXPORT id<InterfacesI> _Nullable InterfacesSeven(void);
  69. @class InterfacesError;
  70. @class InterfacesI;
  71. @class InterfacesI3;
  72. @class InterfacesInterfaces;
  73. @class InterfacesLargerI;
  74. @class InterfacesSameI;
  75. @class InterfacesWithParam;
  76. @interface InterfacesError : NSObject <goSeqRefInterface, InterfacesError> {
  77. }
  78. @property(strong, readonly) _Nonnull id _ref;
  79. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  80. - (BOOL)err:(NSError* _Nullable* _Nullable)error;
  81. @end
  82. @interface InterfacesI : NSObject <goSeqRefInterface, InterfacesI> {
  83. }
  84. @property(strong, readonly) _Nonnull id _ref;
  85. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  86. - (int32_t)rand;
  87. @end
  88. /**
  89. * implementable
  90. (the implementor has to find a source of I1s)
  91. */
  92. @interface InterfacesI3 : NSObject <goSeqRefInterface, InterfacesI3> {
  93. }
  94. @property(strong, readonly) _Nonnull id _ref;
  95. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  96. - (InterfacesI1* _Nullable)f;
  97. @end
  98. /**
  99. * Interfaces is an interface with the same name as its package.
  100. */
  101. @interface InterfacesInterfaces : NSObject <goSeqRefInterface, InterfacesInterfaces> {
  102. }
  103. @property(strong, readonly) _Nonnull id _ref;
  104. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  105. - (void)someMethod;
  106. @end
  107. @interface InterfacesLargerI : NSObject <goSeqRefInterface, InterfacesLargerI> {
  108. }
  109. @property(strong, readonly) _Nonnull id _ref;
  110. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  111. - (void)anotherFunc;
  112. - (int32_t)rand;
  113. @end
  114. @interface InterfacesSameI : NSObject <goSeqRefInterface, InterfacesSameI> {
  115. }
  116. @property(strong, readonly) _Nonnull id _ref;
  117. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  118. - (int32_t)rand;
  119. @end
  120. @interface InterfacesWithParam : NSObject <goSeqRefInterface, InterfacesWithParam> {
  121. }
  122. @property(strong, readonly) _Nonnull id _ref;
  123. - (nonnull instancetype)initWithRef:(_Nonnull id)ref;
  124. - (void)hasParam:(BOOL)p0;
  125. @end
  126. #endif