- M0: libghostty SSH 终端(渲染/输入/连接)+ 白屏修复(OutputGate) + 会话状态机/自动重连 - M1: tsnet 用户态组网 + SSH-over-tsnet(fd 桥),shell 级真机验证;R5(Go+gvisor+C+++Swift 同进程) retire - M1.5: tmux -CC 原生 tab(MVP) - 结构: packages/(TXCore·TXTransport), apps/TerminalX, vendor/(libghostty-spm/libssh2/mbedtls/tsnet-bridge), artifacts/ - 文档: CLAUDE.md + docs/HANDOFF.md(新会话入口) - 环境: 认证代理→依赖 vendor 本地化;Go 在 ~/.local/go;仅模拟器/未签名 - 待续: M2 mosh, tmux 多 pane, M4 安全(host key/SE) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
36 lines
1.1 KiB
Objective-C
36 lines
1.1 KiB
Objective-C
// 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
|