2
0
mirror of synced 2025-02-24 07:18:15 +00:00
mobile/bind/testdata/basictypes.objc.h.golden
Elias Naur 1c49d29d1c bind,cmd: accept ObjC wrapper types in bound packages
Accept ObjC API wrapper types as arguments and return values from
bound Go package functions and methods. Also, allow Go structs
to extend ObjC classes and implement ObjC protocols as well as override
and implement methods.

This is the third and final part of the implementation of the golang/go#17102
proposal.

Fixes golang/go#17102

Change-Id: I601d90fb6d22b8d6f8b7d5fe0130daa1a4dd4734
Reviewed-on: https://go-review.googlesource.com/29175
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-10-17 10:37:16 +00:00

32 lines
959 B
Plaintext

// Objective-C API for talking to basictypes Go package.
// gobind -lang=objc basictypes
//
// File is generated by gobind. Do not edit.
#ifndef __GoBasictypes_H__
#define __GoBasictypes_H__
@import Foundation;
#include "GoUniverse.h"
FOUNDATION_EXPORT const BOOL GoBasictypesABool;
FOUNDATION_EXPORT const double GoBasictypesAFloat;
FOUNDATION_EXPORT NSString* const GoBasictypesALongString;
FOUNDATION_EXPORT const int32_t GoBasictypesARune;
FOUNDATION_EXPORT NSString* const GoBasictypesAString;
FOUNDATION_EXPORT const int64_t GoBasictypesAnInt;
FOUNDATION_EXPORT const int64_t GoBasictypesAnInt2;
FOUNDATION_EXPORT BOOL GoBasictypesBool(BOOL p0);
FOUNDATION_EXPORT NSData* GoBasictypesByteArrays(NSData* x);
FOUNDATION_EXPORT BOOL GoBasictypesError(NSError** error);
FOUNDATION_EXPORT BOOL GoBasictypesErrorPair(long* ret0_, NSError** error);
FOUNDATION_EXPORT void GoBasictypesInts(int8_t x, int16_t y, int32_t z, int64_t t, long u);
#endif