]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Make enum three_state public
authorJohan Malm <jgm323@gmail.com>
Tue, 31 Dec 2024 15:21:47 +0000 (15:21 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 31 Dec 2024 16:23:47 +0000 (16:23 +0000)
include/common/parse-bool.h
include/common/three-state.h [new file with mode: 0644]
include/view.h

index 2d26c4b8e15376a51f2169c06fb4c107260fa966..97afd586981c043a24536c839f5a84df6da779fe 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef LABWC_PARSE_BOOL_H
 #define LABWC_PARSE_BOOL_H
 #include <stdbool.h>
-#include "view.h"
+#include "common/three-state.h"
 
 /**
  * parse_three_state() - Parse boolean value of string as a three-state enum.
diff --git a/include/common/three-state.h b/include/common/three-state.h
new file mode 100644 (file)
index 0000000..2e3d69d
--- /dev/null
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef LABWC_THREE_STATE_H
+#define LABWC_THREE_STATE_H
+
+enum three_state {
+       LAB_STATE_UNSPECIFIED = 0,
+       LAB_STATE_ENABLED,
+       LAB_STATE_DISABLED
+};
+
+#endif /* LABWC_THREE_STATE_H */
index 966b792b35966b1f2a98a87125108a828f1468ce..bec6431d1b85282b574ce76c0293714a8c08fecb 100644 (file)
@@ -10,6 +10,7 @@
 #include <wayland-util.h>
 #include <wlr/util/box.h>
 #include <xkbcommon/xkbcommon.h>
+#include "common/three-state.h"
 
 #define LAB_MIN_VIEW_HEIGHT 60
 
@@ -41,12 +42,6 @@ enum ssd_preference {
        LAB_SSD_PREF_SERVER,
 };
 
-enum three_state {
-       LAB_STATE_UNSPECIFIED = 0,
-       LAB_STATE_ENABLED,
-       LAB_STATE_DISABLED
-};
-
 /**
  * Directions in which a view can be maximized. "None" is used
  * internally to mean "not maximized" but is not valid in rc.xml.