mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 10:36:47 +08:00
Add feature for Fedora
This commit is contained in:
parent
baa0cfdcfd
commit
dc21a18d36
|
@ -6,7 +6,7 @@
|
|||
* Contributors : Shengwei Chen <414685209@qq.com>
|
||||
* |
|
||||
* Created On : <2023-08-29>
|
||||
* Last Modified : <2024-10-02>
|
||||
* Last Modified : <2024-10-09>
|
||||
*
|
||||
* 镜像站与换源信息
|
||||
* ------------------------------------------------------------*/
|
||||
|
@ -195,6 +195,7 @@ typedef struct TargetInfo_t {
|
|||
|
||||
#define def_target_inner_s(t) NULL, t##_setsrc, NULL, NULL
|
||||
#define def_target_inner_gs(t) t##_getsrc, t##_setsrc, NULL, NULL
|
||||
#define def_target_inner_sf(t) NULL, t##_setsrc, NULL, t##_feat
|
||||
#define def_target_inner_gsr(t) t##_getsrc, t##_setsrc, t##_resetsrc, NULL
|
||||
#define def_target_inner_gsf(t) t##_getsrc, t##_setsrc, NULL, t##_feat
|
||||
#define def_target_inner_gsrf(t) t##_getsrc, t##_setsrc, t##_resetsrc, t##_feat
|
||||
|
@ -204,6 +205,7 @@ typedef struct TargetInfo_t {
|
|||
// 大部分target还不支持reset,所以暂时先默认设置为NULL来过渡
|
||||
#define def_target(t) TargetInfo t##_target = {def_target_inner_gs(t),def_target_sourcesn(t)}
|
||||
#define def_target_gs(t) TargetInfo t##_target = {def_target_inner_gs(t),def_target_sourcesn(t)}
|
||||
#define def_target_sf(t) TargetInfo t##_target = {def_target_inner_sf(t),def_target_sourcesn(t)}
|
||||
#define def_target_gsr(t) TargetInfo t##_target = {def_target_inner_gsr(t),def_target_sourcesn(t)}
|
||||
#define def_target_gsf(t) TargetInfo t##_target = {def_target_inner_gsf(t),def_target_sourcesn(t)}
|
||||
#define def_target_gsrf(t) TargetInfo t##_target = {def_target_inner_gsrf(t),def_target_sourcesn(t)}
|
||||
|
|
|
@ -63,4 +63,22 @@ os_fedora_setsrc (char *option)
|
|||
chsrc_conclude (&source, SetsrcType_Auto);
|
||||
}
|
||||
|
||||
def_target_s(os_fedora);
|
||||
|
||||
|
||||
FeatInfo
|
||||
os_fedora_feat (char *option)
|
||||
{
|
||||
FeatInfo f = {0};
|
||||
|
||||
f.can_get = false;
|
||||
f.can_reset = false;
|
||||
|
||||
f.stcan_locally = CanNot;
|
||||
f.can_english = true;
|
||||
f.can_user_define = true;
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_sf(os_fedora);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user