mirror of
https://github.com/labwc/labwc.git
synced 2026-03-15 05:33:53 -04:00
Make enum three_state public
This commit is contained in:
parent
663f913ee4
commit
6457cbccda
3 changed files with 13 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
#ifndef LABWC_PARSE_BOOL_H
|
#ifndef LABWC_PARSE_BOOL_H
|
||||||
#define LABWC_PARSE_BOOL_H
|
#define LABWC_PARSE_BOOL_H
|
||||||
#include <stdbool.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.
|
* parse_three_state() - Parse boolean value of string as a three-state enum.
|
||||||
|
|
|
||||||
11
include/common/three-state.h
Normal file
11
include/common/three-state.h
Normal file
|
|
@ -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 */
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
#include <wayland-util.h>
|
#include <wayland-util.h>
|
||||||
#include <wlr/util/box.h>
|
#include <wlr/util/box.h>
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
|
#include "common/three-state.h"
|
||||||
|
|
||||||
#define LAB_MIN_VIEW_HEIGHT 60
|
#define LAB_MIN_VIEW_HEIGHT 60
|
||||||
|
|
||||||
|
|
@ -41,12 +42,6 @@ enum ssd_preference {
|
||||||
LAB_SSD_PREF_SERVER,
|
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
|
* Directions in which a view can be maximized. "None" is used
|
||||||
* internally to mean "not maximized" but is not valid in rc.xml.
|
* internally to mean "not maximized" but is not valid in rc.xml.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue