Add feature for Fedora

This commit is contained in:
Aoran Zeng 2024-10-09 15:29:48 +08:00
parent baa0cfdcfd
commit dc21a18d36
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 22 additions and 2 deletions

View File

@ -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)}

View File

@ -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);