mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 21:35:32 +00:00
update libmtorrentserver
This commit is contained in:
parent
396bc57920
commit
73e7460078
39 changed files with 40 additions and 440 deletions
Binary file not shown.
|
|
@ -5,6 +5,8 @@
|
||||||
<key>AvailableLibraries</key>
|
<key>AvailableLibraries</key>
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>BinaryPath</key>
|
||||||
|
<string>Libmtorrentserver.framework/Libmtorrentserver</string>
|
||||||
<key>LibraryIdentifier</key>
|
<key>LibraryIdentifier</key>
|
||||||
<string>ios-arm64</string>
|
<string>ios-arm64</string>
|
||||||
<key>LibraryPath</key>
|
<key>LibraryPath</key>
|
||||||
|
|
@ -17,6 +19,8 @@
|
||||||
<string>ios</string>
|
<string>ios</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>BinaryPath</key>
|
||||||
|
<string>Libmtorrentserver.framework/Libmtorrentserver</string>
|
||||||
<key>LibraryIdentifier</key>
|
<key>LibraryIdentifier</key>
|
||||||
<string>ios-arm64_x86_64-simulator</string>
|
<string>ios-arm64_x86_64-simulator</string>
|
||||||
<key>LibraryPath</key>
|
<key>LibraryPath</key>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>Libmtorrentserver</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>Libmtorrentserver</string>
|
||||||
|
<key>MinimumOSVersion</key>
|
||||||
|
<string>100.0</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>0.0.1725361132</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>0.0.1725361132</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
Binary file not shown.
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
// Objective-C API for talking to the following Go packages
|
|
||||||
//
|
|
||||||
// server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gomobile bind. Do not edit.
|
|
||||||
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
#define __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
|
|
||||||
#include "Libmtorrentserver.objc.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
// Objective-C API for talking to server/binding/mobile Go package.
|
|
||||||
// gobind -lang=objc server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Libmtorrentserver_H__
|
|
||||||
#define __Libmtorrentserver_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
|
|
||||||
FOUNDATION_EXPORT BOOL LibmtorrentserverStart(NSString* _Nullable mcfg, long* _Nullable ret0_, NSError* _Nullable* _Nullable error);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Objective-C API for talking to Go package.
|
|
||||||
// gobind -lang=objc
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Universe_H__
|
|
||||||
#define __Universe_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
|
|
||||||
@protocol Universeerror;
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@protocol Universeerror <NSObject>
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
|
||||||
}
|
|
||||||
@property(strong, readonly) _Nonnull id _ref;
|
|
||||||
|
|
||||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
// Copyright 2015 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
#ifndef __GO_REF_HDR__
|
|
||||||
#define __GO_REF_HDR__
|
|
||||||
|
|
||||||
#include <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
// GoSeqRef is an object tagged with an integer for passing back and
|
|
||||||
// forth across the language boundary. A GoSeqRef may represent either
|
|
||||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
|
||||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
|
||||||
// when it is passed to Objective-C. The Go seq package maintains a
|
|
||||||
// reference to the Go object in a map keyed by the refnum along with
|
|
||||||
// a reference count. When the reference count reaches zero, the Go
|
|
||||||
// seq package will clear the corresponding entry in the map.
|
|
||||||
@interface GoSeqRef : NSObject {
|
|
||||||
}
|
|
||||||
@property(readonly) int32_t refnum;
|
|
||||||
@property(strong) id obj; // NULL when representing a Go object.
|
|
||||||
|
|
||||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
|
||||||
// provided from Go side.
|
|
||||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
|
||||||
|
|
||||||
- (int32_t)incNum;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
@protocol goSeqRefInterface
|
|
||||||
-(GoSeqRef*) _ref;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Binary file not shown.
|
|
@ -1,8 +0,0 @@
|
||||||
framework module "Libmtorrentserver" {
|
|
||||||
header "ref.h"
|
|
||||||
header "Libmtorrentserver.objc.h"
|
|
||||||
header "Universe.objc.h"
|
|
||||||
header "Libmtorrentserver.h"
|
|
||||||
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
// Objective-C API for talking to the following Go packages
|
|
||||||
//
|
|
||||||
// server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gomobile bind. Do not edit.
|
|
||||||
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
#define __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
|
|
||||||
#include "Libmtorrentserver.objc.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
// Objective-C API for talking to server/binding/mobile Go package.
|
|
||||||
// gobind -lang=objc server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Libmtorrentserver_H__
|
|
||||||
#define __Libmtorrentserver_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
|
|
||||||
FOUNDATION_EXPORT BOOL LibmtorrentserverStart(NSString* _Nullable mcfg, long* _Nullable ret0_, NSError* _Nullable* _Nullable error);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Objective-C API for talking to Go package.
|
|
||||||
// gobind -lang=objc
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Universe_H__
|
|
||||||
#define __Universe_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
|
|
||||||
@protocol Universeerror;
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@protocol Universeerror <NSObject>
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
|
||||||
}
|
|
||||||
@property(strong, readonly) _Nonnull id _ref;
|
|
||||||
|
|
||||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
// Copyright 2015 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
#ifndef __GO_REF_HDR__
|
|
||||||
#define __GO_REF_HDR__
|
|
||||||
|
|
||||||
#include <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
// GoSeqRef is an object tagged with an integer for passing back and
|
|
||||||
// forth across the language boundary. A GoSeqRef may represent either
|
|
||||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
|
||||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
|
||||||
// when it is passed to Objective-C. The Go seq package maintains a
|
|
||||||
// reference to the Go object in a map keyed by the refnum along with
|
|
||||||
// a reference count. When the reference count reaches zero, the Go
|
|
||||||
// seq package will clear the corresponding entry in the map.
|
|
||||||
@interface GoSeqRef : NSObject {
|
|
||||||
}
|
|
||||||
@property(readonly) int32_t refnum;
|
|
||||||
@property(strong) id obj; // NULL when representing a Go object.
|
|
||||||
|
|
||||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
|
||||||
// provided from Go side.
|
|
||||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
|
||||||
|
|
||||||
- (int32_t)incNum;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
@protocol goSeqRefInterface
|
|
||||||
-(GoSeqRef*) _ref;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Binary file not shown.
|
|
@ -1,8 +0,0 @@
|
||||||
framework module "Libmtorrentserver" {
|
|
||||||
header "ref.h"
|
|
||||||
header "Libmtorrentserver.objc.h"
|
|
||||||
header "Universe.objc.h"
|
|
||||||
header "Libmtorrentserver.h"
|
|
||||||
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>Libmtorrentserver</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>Libmtorrentserver</string>
|
||||||
|
<key>MinimumOSVersion</key>
|
||||||
|
<string>100.0</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>0.0.1725361132</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>0.0.1725361132</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
Binary file not shown.
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
// Objective-C API for talking to the following Go packages
|
|
||||||
//
|
|
||||||
// server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gomobile bind. Do not edit.
|
|
||||||
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
#define __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
|
|
||||||
#include "Libmtorrentserver.objc.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
// Objective-C API for talking to server/binding/mobile Go package.
|
|
||||||
// gobind -lang=objc server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Libmtorrentserver_H__
|
|
||||||
#define __Libmtorrentserver_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
|
|
||||||
FOUNDATION_EXPORT BOOL LibmtorrentserverStart(NSString* _Nullable mcfg, long* _Nullable ret0_, NSError* _Nullable* _Nullable error);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Objective-C API for talking to Go package.
|
|
||||||
// gobind -lang=objc
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Universe_H__
|
|
||||||
#define __Universe_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
|
|
||||||
@protocol Universeerror;
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@protocol Universeerror <NSObject>
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
|
||||||
}
|
|
||||||
@property(strong, readonly) _Nonnull id _ref;
|
|
||||||
|
|
||||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
// Copyright 2015 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
#ifndef __GO_REF_HDR__
|
|
||||||
#define __GO_REF_HDR__
|
|
||||||
|
|
||||||
#include <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
// GoSeqRef is an object tagged with an integer for passing back and
|
|
||||||
// forth across the language boundary. A GoSeqRef may represent either
|
|
||||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
|
||||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
|
||||||
// when it is passed to Objective-C. The Go seq package maintains a
|
|
||||||
// reference to the Go object in a map keyed by the refnum along with
|
|
||||||
// a reference count. When the reference count reaches zero, the Go
|
|
||||||
// seq package will clear the corresponding entry in the map.
|
|
||||||
@interface GoSeqRef : NSObject {
|
|
||||||
}
|
|
||||||
@property(readonly) int32_t refnum;
|
|
||||||
@property(strong) id obj; // NULL when representing a Go object.
|
|
||||||
|
|
||||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
|
||||||
// provided from Go side.
|
|
||||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
|
||||||
|
|
||||||
- (int32_t)incNum;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
@protocol goSeqRefInterface
|
|
||||||
-(GoSeqRef*) _ref;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Binary file not shown.
|
|
@ -1,8 +0,0 @@
|
||||||
framework module "Libmtorrentserver" {
|
|
||||||
header "ref.h"
|
|
||||||
header "Libmtorrentserver.objc.h"
|
|
||||||
header "Universe.objc.h"
|
|
||||||
header "Libmtorrentserver.h"
|
|
||||||
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
// Objective-C API for talking to the following Go packages
|
|
||||||
//
|
|
||||||
// server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gomobile bind. Do not edit.
|
|
||||||
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
#define __Libmtorrentserver_FRAMEWORK_H__
|
|
||||||
|
|
||||||
#include "Libmtorrentserver.objc.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
// Objective-C API for talking to server/binding/mobile Go package.
|
|
||||||
// gobind -lang=objc server/binding/mobile
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Libmtorrentserver_H__
|
|
||||||
#define __Libmtorrentserver_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
|
|
||||||
FOUNDATION_EXPORT BOOL LibmtorrentserverStart(NSString* _Nullable mcfg, long* _Nullable ret0_, NSError* _Nullable* _Nullable error);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Objective-C API for talking to Go package.
|
|
||||||
// gobind -lang=objc
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Universe_H__
|
|
||||||
#define __Universe_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
|
|
||||||
@protocol Universeerror;
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@protocol Universeerror <NSObject>
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@class Universeerror;
|
|
||||||
|
|
||||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
|
||||||
}
|
|
||||||
@property(strong, readonly) _Nonnull id _ref;
|
|
||||||
|
|
||||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
||||||
- (NSString* _Nonnull)error;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
// Copyright 2015 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
#ifndef __GO_REF_HDR__
|
|
||||||
#define __GO_REF_HDR__
|
|
||||||
|
|
||||||
#include <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
// GoSeqRef is an object tagged with an integer for passing back and
|
|
||||||
// forth across the language boundary. A GoSeqRef may represent either
|
|
||||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
|
||||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
|
||||||
// when it is passed to Objective-C. The Go seq package maintains a
|
|
||||||
// reference to the Go object in a map keyed by the refnum along with
|
|
||||||
// a reference count. When the reference count reaches zero, the Go
|
|
||||||
// seq package will clear the corresponding entry in the map.
|
|
||||||
@interface GoSeqRef : NSObject {
|
|
||||||
}
|
|
||||||
@property(readonly) int32_t refnum;
|
|
||||||
@property(strong) id obj; // NULL when representing a Go object.
|
|
||||||
|
|
||||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
|
||||||
// provided from Go side.
|
|
||||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
|
||||||
|
|
||||||
- (int32_t)incNum;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
@protocol goSeqRefInterface
|
|
||||||
-(GoSeqRef*) _ref;
|
|
||||||
@end
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Binary file not shown.
|
|
@ -1,8 +0,0 @@
|
||||||
framework module "Libmtorrentserver" {
|
|
||||||
header "ref.h"
|
|
||||||
header "Libmtorrentserver.objc.h"
|
|
||||||
header "Universe.objc.h"
|
|
||||||
header "Libmtorrentserver.h"
|
|
||||||
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue