mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
config/rcxml.c: fix parsing of three-state query parameters
This commit is contained in:
parent
96da82c085
commit
2b877d2293
3 changed files with 35 additions and 15 deletions
|
|
@ -2,6 +2,16 @@
|
|||
#ifndef LABWC_PARSE_BOOL_H
|
||||
#define LABWC_PARSE_BOOL_H
|
||||
#include <stdbool.h>
|
||||
#include "view.h"
|
||||
|
||||
/**
|
||||
* parse_three_state() - Parse boolean value of string as a three-state enum.
|
||||
* @string: String to interpret. This check is case-insensitive.
|
||||
*
|
||||
* Return: LAB_STATE_DISABLED for false; LAB_STATE_ENABLED for true;
|
||||
* LAB_STATE_UNSPECIFIED for non-boolean
|
||||
*/
|
||||
enum three_state parse_three_state(const char *str);
|
||||
|
||||
/**
|
||||
* parse_bool() - Parse boolean value of string.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue