mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Move get_bool() to src/common/
...in preparation for sharing it more widely
This commit is contained in:
parent
471e3837b7
commit
bdf6e13881
4 changed files with 36 additions and 15 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include <wlr/util/box.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "action.h"
|
||||
#include "common/get-bool.h"
|
||||
#include "common/list.h"
|
||||
#include "common/mem.h"
|
||||
#include "common/nodename.h"
|
||||
|
|
@ -178,21 +179,6 @@ fill_mousebind(char *nodename, char *content)
|
|||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
get_bool(const char *s)
|
||||
{
|
||||
if (!s) {
|
||||
return false;
|
||||
}
|
||||
if (!strcasecmp(s, "yes")) {
|
||||
return true;
|
||||
}
|
||||
if (!strcasecmp(s, "true")) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static enum libinput_config_accel_profile
|
||||
get_accel_profile(const char *s)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue