2
0
mirror of synced 2025-02-23 06:48:15 +00:00
mobile/bind/testdata/structs.objc.h.golden
Hyang-Ah (Hana) Kim a922dd97b1 bind/objc: remove '_' after Go<pkgname> prefix from names.
Before this change, func Hello() of mypkg package generated a function
GoMypkg_Hello to distinguish the prefix from the function name.
It seems the use of '_' is very rare in Objective-C though.
After this change, it generates GoMypkgHello.

Change-Id: Ic7aa2b667363a447a5ff3500262502d3137d6853
Reviewed-on: https://go-review.googlesource.com/11893
Reviewed-by: Damien Neil <dneil@google.com>
2015-07-07 03:29:17 +00:00

31 lines
668 B
Plaintext

// Objective-C API for talking to structs Go package.
// gobind -lang=objc structs
//
// File is generated by gobind. Do not edit.
#ifndef __GoStructs_H__
#define __GoStructs_H__
#include "seq.h"
@class GoStructsS;
@interface GoStructsS : NSObject {
}
@property(strong, readonly) GoSeqRef *ref;
- (id)initWithRef:(GoSeqRef*)ref;
- (double)X;
- (void)setX:(double)v;
- (double)Y;
- (void)setY:(double)v;
- (BOOL)Identity:(GoStructsS**)ret0_ error:(NSError**)error;
- (double)Sum;
@end
FOUNDATION_EXPORT GoStructsS* GoStructsIdentity(GoStructsS* s);
FOUNDATION_EXPORT BOOL GoStructsIdentityWithError(GoStructsS* s, GoStructsS** ret0_, NSError** error);
#endif