Skip to content

Commit

Permalink
Add get and feature for ROS
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmywish committed Dec 6, 2024
1 parent cc88867 commit 3e62f2a
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions src/recipe/os/APT/ROS.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* | zouri <guoshuaisun@outlook.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[] =
{
Expand All @@ -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)
Expand All @@ -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);

0 comments on commit 3e62f2a

Please sign in to comment.