diff --git a/src/framework/chef.h b/src/framework/chef.h new file mode 100644 index 0000000..7131a47 --- /dev/null +++ b/src/framework/chef.h @@ -0,0 +1,20 @@ +/** ------------------------------------------------------------ + * SPDX-License-Identifier: GPL-3.0-or-later + * ------------------------------------------------------------- + * File Name : chef.h + * File Authors : Aoran Zeng + * Contributors : Peng Gao + * Created On : <2025-07-14> + * Last Modified : <2025-07-14> + * + * For chefs (recipe makers) and sometimes framewoker + * ------------------------------------------------------------*/ + +#pragma once + + +bool +is_url (const char *str) +{ + return (xy_str_start_with (str, "http://") || xy_str_start_with (str, "https://")); +} diff --git a/src/framework/core.c b/src/framework/core.c index 8db3290..52979f2 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -9,7 +9,7 @@ * | Yangmoooo * | * Created On : <2023-08-29> - * Last Modified : <2025-07-12> + * Last Modified : <2025-07-14> * * chsrc framework * ------------------------------------------------------------*/ @@ -25,6 +25,7 @@ #include "xy.h" #include "struct.h" #include "mirror.c" +#include "chef.h" #define App_Name "chsrc" @@ -279,14 +280,6 @@ log_cmd_result (bool result, int exit_status) -bool -is_url (const char *str) -{ - return (xy_str_start_with (str, "http://") || xy_str_start_with (str, "https://")); -} - - - #define Quiet_When_Exist 0x00 #define Noisy_When_Exist 0x01 #define Quiet_When_NonExist 0x00