]> Kevux Git Server - fll/commitdiff
Update: Add local and remote status codes.
authorKevin Day <thekevinday@gmail.com>
Tue, 1 Mar 2022 00:49:03 +0000 (18:49 -0600)
committerKevin Day <thekevinday@gmail.com>
Tue, 1 Mar 2022 00:49:03 +0000 (18:49 -0600)
level_0/f_status/c/status.h
level_0/f_status_string/c/status_string.c
level_0/f_status_string/c/status_string.h
level_2/fll_status_string/c/status_string.c

index d9f3a78ddf2f01adf0eff0ad889d094c3a3c2300..7267785fe50150fef377c9cc59fc2443ae192141 100644 (file)
@@ -280,6 +280,8 @@ extern "C" {
       F_link_not,
       F_live,
       F_live_not,
+      F_local,
+      F_local_not,
       F_lock,
       F_lock_not,
       F_loop,
@@ -345,6 +347,8 @@ extern "C" {
       F_recurse_not,
       F_relative,
       F_relative_not,
+      F_remote,
+      F_remote_not,
       F_require,
       F_require_not,
       F_resource,
index 6aa91ce5af05282e03d14853c6a6f0c81cfd12c9..fd74d86c6da7f91ac1d81eace81f50638016a998 100644 (file)
@@ -198,6 +198,8 @@ extern "C" {
     const f_string_static_t f_status_link_not_s = macro_f_string_static_t_initialize(F_status_link_not_s, 0, F_status_link_not_s_length);
     const f_string_static_t f_status_live_s = macro_f_string_static_t_initialize(F_status_live_s, 0, F_status_live_s_length);
     const f_string_static_t f_status_live_not_s = macro_f_string_static_t_initialize(F_status_live_not_s, 0, F_status_live_not_s_length);
+    const f_string_static_t f_status_local_s = macro_f_string_static_t_initialize(F_status_local_s, 0, F_status_local_s_length);
+    const f_string_static_t f_status_local_not_s = macro_f_string_static_t_initialize(F_status_local_not_s, 0, F_status_local_not_s_length);
     const f_string_static_t f_status_lock_s = macro_f_string_static_t_initialize(F_status_lock_s, 0, F_status_lock_s_length);
     const f_string_static_t f_status_lock_not_s = macro_f_string_static_t_initialize(F_status_lock_not_s, 0, F_status_lock_not_s_length);
     const f_string_static_t f_status_loop_s = macro_f_string_static_t_initialize(F_status_loop_s, 0, F_status_loop_s_length);
@@ -263,6 +265,8 @@ extern "C" {
     const f_string_static_t f_status_recurse_not_s = macro_f_string_static_t_initialize(F_status_recurse_not_s, 0, F_status_recurse_not_s_length);
     const f_string_static_t f_status_relative_s = macro_f_string_static_t_initialize(F_status_relative_s, 0, F_status_relative_s_length);
     const f_string_static_t f_status_relative_not_s = macro_f_string_static_t_initialize(F_status_relative_not_s, 0, F_status_relative_not_s_length);
+    const f_string_static_t f_status_remote_s = macro_f_string_static_t_initialize(F_status_remote_s, 0, F_status_remote_s_length);
+    const f_string_static_t f_status_remote_not_s = macro_f_string_static_t_initialize(F_status_remote_not_s, 0, F_status_remote_not_s_length);
     const f_string_static_t f_status_require_s = macro_f_string_static_t_initialize(F_status_require_s, 0, F_status_require_s_length);
     const f_string_static_t f_status_require_not_s = macro_f_string_static_t_initialize(F_status_require_not_s, 0, F_status_require_not_s_length);
     const f_string_static_t f_status_resource_s = macro_f_string_static_t_initialize(F_status_resource_s, 0, F_status_resource_s_length);
@@ -1338,6 +1342,14 @@ extern "C" {
           *name = f_status_live_not_s;
           break;
 
+        case F_local:
+          *name = f_status_local_s;
+          break;
+
+        case F_local_not:
+          *name = f_status_local_not_s;
+          break;
+
         case F_lock:
           *name = f_status_lock_s;
           break;
@@ -1598,6 +1610,14 @@ extern "C" {
           *name = f_status_relative_not_s;
           break;
 
+        case F_remote:
+          *name = f_status_remote_s;
+          break;
+
+        case F_remote_not:
+          *name = f_status_remote_not_s;
+          break;
+
         case F_require:
           *name = f_status_require_s;
           break;
index c15f7f974a562ac2df789c38b172bda0934058f4..e07d079e149a12ea810b67f12ca4a0123722a72d 100644 (file)
@@ -351,6 +351,8 @@ extern "C" {
     #define F_status_link_not_s          "F_link_not"
     #define F_status_live_s              "F_live"
     #define F_status_live_not_s          "F_live_not"
+    #define F_status_local_s             "F_local"
+    #define F_status_local_not_s         "F_local_not"
     #define F_status_lock_s              "F_lock"
     #define F_status_lock_not_s          "F_lock_not"
     #define F_status_loop_s              "F_loop"
@@ -416,6 +418,8 @@ extern "C" {
     #define F_status_recurse_not_s       "F_recurse_not"
     #define F_status_relative_s          "F_relative"
     #define F_status_relative_not_s      "F_relative_not"
+    #define F_status_remote_s            "F_remote"
+    #define F_status_remote_not_s        "F_remote_not"
     #define F_status_require_s           "F_require"
     #define F_status_require_not_s       "F_require_not"
     #define F_status_resource_s          "F_resource"
@@ -595,6 +599,8 @@ extern "C" {
     #define F_status_link_not_s_length          10
     #define F_status_live_s_length              6
     #define F_status_live_not_s_length          10
+    #define F_status_local_s_length             7
+    #define F_status_local_not_s_length         11
     #define F_status_lock_s_length              6
     #define F_status_lock_not_s_length          10
     #define F_status_loop_s_length              6
@@ -660,6 +666,8 @@ extern "C" {
     #define F_status_recurse_not_s_length       13
     #define F_status_relative_s_length          10
     #define F_status_relative_not_s_length      14
+    #define F_status_remote_s_length            8
+    #define F_status_remote_not_s_length        12
     #define F_status_require_s_length           9
     #define F_status_require_not_s_length       13
     #define F_status_resource_s_length          10
@@ -839,6 +847,8 @@ extern "C" {
     extern const f_string_static_t f_status_link_not_s;
     extern const f_string_static_t f_status_live_s;
     extern const f_string_static_t f_status_live_not_s;
+    extern const f_string_static_t f_status_local_s;
+    extern const f_string_static_t f_status_local_not_s;
     extern const f_string_static_t f_status_lock_s;
     extern const f_string_static_t f_status_lock_not_s;
     extern const f_string_static_t f_status_loop_s;
@@ -904,6 +914,8 @@ extern "C" {
     extern const f_string_static_t f_status_recurse_not_s;
     extern const f_string_static_t f_status_relative_s;
     extern const f_string_static_t f_status_relative_not_s;
+    extern const f_string_static_t f_status_remote_s;
+    extern const f_string_static_t f_status_remote_not_s;
     extern const f_string_static_t f_status_require_s;
     extern const f_string_static_t f_status_require_not_s;
     extern const f_string_static_t f_status_resource_s;
index 8422cd98a3d5ef3b5342e0c93f2635ef8e9b8ca9..953e0dbb2a204957ee375a59698d21048101356c 100644 (file)
@@ -1146,6 +1146,18 @@ extern "C" {
         return F_none;
       }
 
+      if (fl_string_dynamic_compare(name, f_status_local_s) == F_equal_to) {
+        *code = F_local;
+
+        return F_none;
+      }
+
+      if (fl_string_dynamic_compare(name, f_status_local_not_s) == F_equal_to) {
+        *code = F_local_not;
+
+        return F_none;
+      }
+
       if (fl_string_dynamic_compare(name, f_status_lock_s) == F_equal_to) {
         *code = F_lock;
 
@@ -1536,6 +1548,18 @@ extern "C" {
         return F_none;
       }
 
+      if (fl_string_dynamic_compare(name, f_status_remote_s) == F_equal_to) {
+        *code = F_remote;
+
+        return F_none;
+      }
+
+      if (fl_string_dynamic_compare(name, f_status_remote_not_s) == F_equal_to) {
+        *code = F_remote_not;
+
+        return F_none;
+      }
+
       if (fl_string_dynamic_compare(name, f_status_require_s) == F_equal_to) {
         *code = F_require;