Add get and feature for ROS

This commit is contained in:
Aoran Zeng 2024-12-06 10:03:24 +08:00
parent cc88867aae
commit 3e62f2aa85
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -4,12 +4,13 @@
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* | zouri <guoshuaisun@outlook.com>
* |
* Created On : <2023-09-03>
* Last Modified : <2024-12-05>
* Last Modified : <2024-12-06>
* ------------------------------------------------------------*/
/**
* @update 2024-12-05
* @update 2024-04-18
*/
static Source_t os_ros_sources[] =
{
@ -26,9 +27,16 @@ static Source_t os_ros_sources[] =
};
def_sources_n(os_ros);
void
os_ros_getsrc (char *option)
{
chsrc_view_file (OS_ROS_SourceList);
}
/**
*
* https://mirrors.tuna.tsinghua.edu.cn/help/ros/
* @consult https://mirrors.tuna.tsinghua.edu.cn/help/ros/
*/
void
os_ros_setsrc (char *option)
@ -52,4 +60,22 @@ os_ros_setsrc (char *option)
chsrc_conclude (&source);
}
def_target_s(os_ros);
Feature_t
os_ros_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = false;
f.note = "该换源方案中URL存在拼凑因此不能手动使用某URL来换源";
return f;
}
def_target_gsf(os_ros);