]> Kevux Git Server - fll/commitdiff
Update: provide F_minor and F_moderate to complement the F_critical status code.
authorKevin Day <thekevinday@gmail.com>
Sun, 6 Dec 2020 23:45:10 +0000 (17:45 -0600)
committerKevin Day <thekevinday@gmail.com>
Sun, 6 Dec 2020 23:45:10 +0000 (17:45 -0600)
level_0/f_status/c/status.h
level_1/fl_status/c/status.c
level_1/fl_status/c/status.h
level_2/fll_status/c/status.c

index 846fe5ecedc064597d47e3104f7fde39ead6877a..1ac8025eac8717857e8920ea00e945bdb4796b36 100644 (file)
@@ -198,6 +198,10 @@ extern "C" {
       F_loop_not,
       F_maybe,
       F_maybe_not,
+      F_minor,
+      F_minor_not,
+      F_moderate,
+      F_moderate_not,
       F_mount,
       F_mount_not,
       F_name,
index beb1ecf8d1aef266b2c8b2de84cdc6ce1d1d60f3..a43755646021b17a1728dbeb554ae729b18f2397 100644 (file)
@@ -377,6 +377,18 @@ extern "C" {
         case F_maybe_not:
           *string = FL_status_string_maybe_not;
           break;
+        case F_minor:
+          *string = FL_status_string_minor;
+          break;
+        case F_minor_not:
+          *string = FL_status_string_minor_not;
+          break;
+        case F_moderate:
+          *string = FL_status_string_moderate;
+          break;
+        case F_moderate_not:
+          *string = FL_status_string_moderate_not;
+          break;
         case F_mount:
           *string = FL_status_string_mount;
           break;
index 530594c49460cfd99d4cbc4cc061a9ed5ce21f91..7357057871eba4102ef0be3ce3f289e7f7f8a342 100644 (file)
@@ -217,6 +217,10 @@ extern "C" {
     #define FL_status_string_loop_not         "F_loop_not"
     #define FL_status_string_maybe            "F_maybe"
     #define FL_status_string_maybe_not        "F_maybe_not"
+    #define FL_status_string_minor            "F_minor"
+    #define FL_status_string_minor_not        "F_minor_not"
+    #define FL_status_string_moderate         "F_moderate"
+    #define FL_status_string_moderate_not     "F_moderate_not"
     #define FL_status_string_mount            "F_mount"
     #define FL_status_string_mount_not        "F_mount_not"
     #define FL_status_string_name             "F_name"
@@ -324,6 +328,10 @@ extern "C" {
     #define FL_status_string_loop_not_length         10
     #define FL_status_string_maybe_length            7
     #define FL_status_string_maybe_not_length        11
+    #define FL_status_string_minor_length            7
+    #define FL_status_string_minor_not_length        11
+    #define FL_status_string_moderate_length         10
+    #define FL_status_string_moderate_not_length     14
     #define FL_status_string_mount_length            7
     #define FL_status_string_mount_not_length        11
     #define FL_status_string_name_length             6
index ffa62feed8d147b9115405ef7be5061f6c37455c..8ec157f97e69f852c614a02a5126d7e7e9077856 100644 (file)
@@ -631,6 +631,26 @@ extern "C" {
         return F_none;
       }
 
+      if (fl_string_compare(string, FL_status_string_minor, length, FL_status_string_minor_length) == F_equal_to) {
+        *code = F_minor;
+        return F_none;
+      }
+
+      if (fl_string_compare(string, FL_status_string_minor_not, length, FL_status_string_minor_not_length) == F_equal_to) {
+        *code = F_minor_not;
+        return F_none;
+      }
+
+      if (fl_string_compare(string, FL_status_string_moderate, length, FL_status_string_moderate_length) == F_equal_to) {
+        *code = F_moderate;
+        return F_none;
+      }
+
+      if (fl_string_compare(string, FL_status_string_moderate_not, length, FL_status_string_moderate_not_length) == F_equal_to) {
+        *code = F_moderate_not;
+        return F_none;
+      }
+
       if (fl_string_compare(string, FL_status_string_mount, length, FL_status_string_mount_length) == F_equal_to) {
         *code = F_mount;
         return F_none;