]> git.lizzy.rs Git - bspwm.git/blob - src/parse.h
bspwm: port rounded corners patch to latest version
[bspwm.git] / src / parse.h
1 #ifndef BSPWM_PARSE_H
2 #define BSPWM_PARSE_H
3
4 #include "types.h"
5 #include "subscribe.h"
6
7 #define OPT_CHR  '-'
8 #define CAT_CHR  '.'
9 #define EQL_TOK  "="
10 #define COL_TOK  ":"
11
12 bool parse_bool(char *value, bool *b);
13 bool parse_split_type(char *s, split_type_t *t);
14 bool parse_split_mode(char *s, split_mode_t *m);
15 bool parse_layout(char *s, layout_t *l);
16 bool parse_client_state(char *s, client_state_t *t);
17 bool parse_stack_layer(char *s, stack_layer_t *l);
18 bool parse_direction(char *s, direction_t *d);
19 bool parse_cycle_direction(char *s, cycle_dir_t *d);
20 bool parse_circulate_direction(char *s, circulate_dir_t *d);
21 bool parse_history_direction(char *s, history_dir_t *d);
22 bool parse_flip(char *s, flip_t *f);
23 bool parse_resize_handle(char *s, resize_handle_t *h);
24 bool parse_modifier_mask(char *s, uint16_t *m);
25 bool parse_button_index(char *s, int8_t *b);
26 bool parse_pointer_action(char *s, pointer_action_t *a);
27 bool parse_child_polarity(char *s, child_polarity_t *p);
28 bool parse_automatic_scheme(char *s, automatic_scheme_t *a);
29 bool parse_state_transition(char *s, state_transition_t *m);
30 bool parse_tightness(char *s, tightness_t *t);
31 bool parse_degree(char *s, int *d);
32 bool parse_id(char *s, uint32_t *id);
33 bool parse_bool_declaration(char *s, char **key, bool *value, alter_state_t *state);
34 bool parse_index(char *s, uint16_t *idx);
35 bool parse_rectangle(char *s, xcb_rectangle_t *r);
36 bool parse_subscriber_mask(char *s, subscriber_mask_t *mask);
37 bool parse_monitor_modifiers(char *desc, monitor_select_t *sel);
38 bool parse_desktop_modifiers(char *desc, desktop_select_t *sel);
39 bool parse_node_modifiers(char *desc, node_select_t *sel);
40
41 #endif