From: Kevin Day Date: Sat, 1 Jan 2022 02:41:58 +0000 (-0600) Subject: Update: Add F_domain, F_family, F_protocol, and F_property statuses. X-Git-Tag: 0.5.8~157 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=984273c56ce733ec8f420cb5a6c5184b57496b0f;p=fll Update: Add F_domain, F_family, F_protocol, and F_property statuses. This includes the *_not status for each. The domain, family, and protocol are common enough terminology and are used heavily in networking relating processes. The property is a very common terminology as well. --- diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index 957d709..422dfb6 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -181,6 +181,8 @@ extern "C" { F_device_not, F_disable, F_disable_not, + F_domain, + F_domain_not, F_done, F_done_not, F_dummy, @@ -205,6 +207,8 @@ extern "C" { F_exist_not, F_failure, F_failure_not, + F_family, + F_family_not, F_first, F_first_not, F_fork, @@ -274,6 +278,10 @@ extern "C" { F_processor_not, F_prohibited, F_prohibited_not, + F_property, + F_property_not, + F_protocol, + F_protocol_not, F_range, F_range_not, F_read, diff --git a/level_0/f_status_string/c/status_string.c b/level_0/f_status_string/c/status_string.c index bcb15c7..3515826 100644 --- a/level_0/f_status_string/c/status_string.c +++ b/level_0/f_status_string/c/status_string.c @@ -115,6 +115,8 @@ extern "C" { const f_string_t f_status_device_not_s = F_status_device_not_s; const f_string_t f_status_disable_s = F_status_disable_s; const f_string_t f_status_disable_not_s = F_status_disable_not_s; + const f_string_t f_status_domain_s = F_status_domain_s; + const f_string_t f_status_domain_not_s = F_status_domain_not_s; const f_string_t f_status_done_s = F_status_done_s; const f_string_t f_status_done_not_s = F_status_done_not_s; const f_string_t f_status_dummy_s = F_status_dummy_s; @@ -139,6 +141,8 @@ extern "C" { const f_string_t f_status_exist_not_s = F_status_exist_not_s; const f_string_t f_status_failure_s = F_status_failure_s; const f_string_t f_status_failure_not_s = F_status_failure_not_s; + const f_string_t f_status_family_s = F_status_family_s; + const f_string_t f_status_family_not_s = F_status_family_not_s; const f_string_t f_status_first_s = F_status_first_s; const f_string_t f_status_first_not_s = F_status_first_not_s; const f_string_t f_status_fork_s = F_status_fork_s; @@ -198,16 +202,20 @@ extern "C" { const f_string_t f_status_parameter_not_s = F_status_parameter_not_s; const f_string_t f_status_parent_s = F_status_parent_s; const f_string_t f_status_parent_not_s = F_status_parent_not_s; - const f_string_t f_status_previous_s = F_status_previous_s; - const f_string_t f_status_previous_not_s = F_status_previous_not_s; const f_string_t f_status_pipe_s = F_status_pipe_s; const f_string_t f_status_pipe_not_s = F_status_pipe_not_s; const f_string_t f_status_port_s = F_status_port_s; const f_string_t f_status_port_not_s = F_status_port_not_s; + const f_string_t f_status_previous_s = F_status_previous_s; + const f_string_t f_status_previous_not_s = F_status_previous_not_s; const f_string_t f_status_processor_s = F_status_processor_s; const f_string_t f_status_processor_not_s = F_status_processor_not_s; const f_string_t f_status_prohibited_s = F_status_prohibited_s; const f_string_t f_status_prohibited_not_s = F_status_prohibited_not_s; + const f_string_t f_status_property_s = F_status_property_s; + const f_string_t f_status_property_not_s = F_status_property_not_s; + const f_string_t f_status_protocol_s = F_status_protocol_s; + const f_string_t f_status_protocol_not_s = F_status_protocol_not_s; const f_string_t f_status_range_s = F_status_range_s; const f_string_t f_status_range_not_s = F_status_range_not_s; const f_string_t f_status_read_s = F_status_read_s; @@ -936,6 +944,14 @@ extern "C" { *string = f_status_disable_not_s; break; + case F_domain: + *string = f_status_domain_s; + break; + + case F_domain_not: + *string = f_status_domain_not_s; + break; + case F_done: *string = f_status_done_s; break; @@ -1032,6 +1048,14 @@ extern "C" { *string = f_status_failure_not_s; break; + case F_family: + *string = f_status_family_s; + break; + + case F_family_not: + *string = f_status_family_not_s; + break; + case F_first: *string = f_status_first_s; break; @@ -1260,14 +1284,6 @@ extern "C" { *string = f_status_parent_not_s; break; - case F_previous: - *string = f_status_previous_s; - break; - - case F_previous_not: - *string = f_status_previous_not_s; - break; - case F_pipe: *string = f_status_pipe_s; break; @@ -1284,6 +1300,14 @@ extern "C" { *string = f_status_port_not_s; break; + case F_previous: + *string = f_status_previous_s; + break; + + case F_previous_not: + *string = f_status_previous_not_s; + break; + case F_processor: *string = f_status_processor_s; break; @@ -1300,6 +1324,22 @@ extern "C" { *string = f_status_prohibited_not_s; break; + case F_property: + *string = f_status_property_s; + break; + + case F_property_not: + *string = f_status_property_not_s; + break; + + case F_protocol: + *string = f_status_protocol_s; + break; + + case F_protocol_not: + *string = f_status_protocol_not_s; + break; + case F_range: *string = f_status_range_s; break; diff --git a/level_0/f_status_string/c/status_string.h b/level_0/f_status_string/c/status_string.h index d4eeaa1..bf2edee 100644 --- a/level_0/f_status_string/c/status_string.h +++ b/level_0/f_status_string/c/status_string.h @@ -268,6 +268,8 @@ extern "C" { #define F_status_device_not_s "F_device_not" #define F_status_disable_s "F_disable" #define F_status_disable_not_s "F_disable_not" + #define F_status_domain_s "F_domain" + #define F_status_domain_not_s "F_domain_not" #define F_status_done_s "F_done" #define F_status_done_not_s "F_done_not" #define F_status_dummy_s "F_dummy" @@ -292,6 +294,8 @@ extern "C" { #define F_status_exist_not_s "F_exist_not" #define F_status_failure_s "F_failure" #define F_status_failure_not_s "F_failure_not" + #define F_status_family_s "F_family" + #define F_status_family_not_s "F_family_not" #define F_status_first_s "F_first" #define F_status_first_not_s "F_first_not" #define F_status_fork_s "F_fork" @@ -351,16 +355,20 @@ extern "C" { #define F_status_parameter_not_s "F_parameter_not" #define F_status_parent_s "F_parent" #define F_status_parent_not_s "F_parent_not" - #define F_status_previous_s "F_previous" - #define F_status_previous_not_s "F_previous_not" #define F_status_pipe_s "F_pipe" #define F_status_pipe_not_s "F_pipe_not" #define F_status_port_s "F_port" #define F_status_port_not_s "F_port_not" + #define F_status_previous_s "F_previous" + #define F_status_previous_not_s "F_previous_not" #define F_status_processor_s "F_processor" #define F_status_processor_not_s "F_processor_not" #define F_status_prohibited_s "F_prohibited" #define F_status_prohibited_not_s "F_prohibited_not" + #define F_status_property_s "F_property" + #define F_status_property_not_s "F_property_not" + #define F_status_protocol_s "F_protocol" + #define F_status_protocol_not_s "F_protocol_not" #define F_status_range_s "F_range" #define F_status_range_not_s "F_range_not" #define F_status_read_s "F_read" @@ -461,6 +469,8 @@ extern "C" { #define F_status_device_not_s_length 12 #define F_status_disable_s_length 9 #define F_status_disable_not_s_length 13 + #define F_status_domain_s_length 8 + #define F_status_domain_not_s_length 12 #define F_status_done_s_length 6 #define F_status_done_not_s_length 10 #define F_status_dummy_s_length 7 @@ -485,6 +495,8 @@ extern "C" { #define F_status_exist_not_s_length 11 #define F_status_failure_s_length 9 #define F_status_failure_not_s_length 13 + #define F_status_family_s_length 8 + #define F_status_family_not_s_length 12 #define F_status_first_s_length 7 #define F_status_first_not_s_length 11 #define F_status_fork_s_length 6 @@ -554,6 +566,10 @@ extern "C" { #define F_status_processor_not_s_length 15 #define F_status_prohibited_s_length 12 #define F_status_prohibited_not_s_length 16 + #define F_status_property_s_length 10 + #define F_status_property_not_s_length 14 + #define F_status_protocol_s_length 10 + #define F_status_protocol_not_s_length 14 #define F_status_range_s_length 7 #define F_status_range_not_s_length 11 #define F_status_read_s_length 6 @@ -654,6 +670,8 @@ extern "C" { extern const f_string_t f_status_device_not_s; extern const f_string_t f_status_disable_s; extern const f_string_t f_status_disable_not_s; + extern const f_string_t f_status_domain_s; + extern const f_string_t f_status_domain_not_s; extern const f_string_t f_status_done_s; extern const f_string_t f_status_done_not_s; extern const f_string_t f_status_dummy_s; @@ -678,6 +696,8 @@ extern "C" { extern const f_string_t f_status_exist_not_s; extern const f_string_t f_status_failure_s; extern const f_string_t f_status_failure_not_s; + extern const f_string_t f_status_family_s; + extern const f_string_t f_status_family_not_s; extern const f_string_t f_status_first_s; extern const f_string_t f_status_first_not_s; extern const f_string_t f_status_fork_s; @@ -747,6 +767,10 @@ extern "C" { extern const f_string_t f_status_processor_not_s; extern const f_string_t f_status_prohibited_s; extern const f_string_t f_status_prohibited_not_s; + extern const f_string_t f_status_property_s; + extern const f_string_t f_status_property_not_s; + extern const f_string_t f_status_protocol_s; + extern const f_string_t f_status_protocol_not_s; extern const f_string_t f_status_range_s; extern const f_string_t f_status_range_not_s; extern const f_string_t f_status_read_s; diff --git a/level_2/fll_status_string/c/status_string.c b/level_2/fll_status_string/c/status_string.c index 7c6bb72..b32b622 100644 --- a/level_2/fll_status_string/c/status_string.c +++ b/level_2/fll_status_string/c/status_string.c @@ -649,6 +649,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_domain_s, length, F_status_domain_s_length) == F_equal_to) { + *code = F_domain; + + return F_none; + } + + if (fl_string_compare(string, f_status_domain_not_s, length, F_status_domain_not_s_length) == F_equal_to) { + *code = F_domain_not; + + return F_none; + } + if (fl_string_compare(string, f_status_done_s, length, F_status_done_s_length) == F_equal_to) { *code = F_done; @@ -793,6 +805,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_family_s, length, F_status_family_s_length) == F_equal_to) { + *code = F_family; + + return F_none; + } + + if (fl_string_compare(string, f_status_family_not_s, length, F_status_family_not_s_length) == F_equal_to) { + *code = F_family_not; + + return F_none; + } + if (fl_string_compare(string, f_status_first_s, length, F_status_first_s_length) == F_equal_to) { *code = F_first; @@ -1207,6 +1231,30 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_property_s, length, F_status_property_s_length) == F_equal_to) { + *code = F_property; + + return F_none; + } + + if (fl_string_compare(string, f_status_property_not_s, length, F_status_property_not_s_length) == F_equal_to) { + *code = F_property_not; + + return F_none; + } + + if (fl_string_compare(string, f_status_protocol_s, length, F_status_protocol_s_length) == F_equal_to) { + *code = F_protocol; + + return F_none; + } + + if (fl_string_compare(string, f_status_protocol_not_s, length, F_status_protocol_not_s_length) == F_equal_to) { + *code = F_protocol_not; + + return F_none; + } + if (fl_string_compare(string, f_status_range_s, length, F_status_range_s_length) == F_equal_to) { *code = F_range;