From 126fefa528c4e3727cdbeed0ee1ebc9d67036eba Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sun, 22 Feb 2026 22:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20`ScopeCapability=5Ft`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/struct.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/framework/struct.h b/src/framework/struct.h index ecaf267..8f2e87a 100644 --- a/src/framework/struct.h +++ b/src/framework/struct.h @@ -100,12 +100,21 @@ Source_t; typedef enum Scope_t { DefaultScope, /* 默认作用域,即根据实际情况最佳的作用域 */ - SystemScope, + + ProjectScope, UserScope, - ProjectScope + SystemScope, } Scope_t; +typedef enum ScopeCapability_t +{ + ScopeCap_Unknown, /* 未知,缺乏对该 target 的细致了解 */ + ScopeCap_Unable, /* 不支持该作用域 */ + ScopeCap_Able_But_NotImplemented, /* 支持但chsrc尚未实现 */ + ScopeCap_Able_And_Implemented /* 支持且chsrc已经实现 */ +} +ScopeCapability_t; typedef enum Capability_t { @@ -153,6 +162,9 @@ typedef struct Target_t Capability_t cap_local; /* 是否支持 local mode */ char *cap_local_explain; /* local mode 的说明 */ + Scope_t default_scope; /* 默认作用域 */ + ScopeCapability_t scope_caps[3]; /* 各作用域的支持情况 */ + char *note; /* 备注 */