2018-08-22 19:58:49 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2018-09-27 23:10:43 +08:00
|
|
|
#ifdef CONFIG_LIBCONFIG
|
2018-08-22 19:58:49 +08:00
|
|
|
#include <libconfig.h>
|
2018-09-27 23:10:43 +08:00
|
|
|
#endif
|
2018-08-22 19:58:49 +08:00
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
bool parse_long(const char *, long *);
|
|
|
|
const char *parse_matrix_readnum(const char *, double *);
|
2018-09-28 00:14:44 +08:00
|
|
|
xcb_render_fixed_t *parse_matrix(session_t *, const char *, const char **);
|
|
|
|
xcb_render_fixed_t *parse_conv_kern(session_t *, const char *, const char **);
|
|
|
|
bool parse_conv_kern_lst(session_t *, const char *, xcb_render_fixed_t **, int);
|
2018-08-22 19:58:49 +08:00
|
|
|
bool parse_geometry(session_t *, const char *, geometry_t *);
|
|
|
|
bool parse_rule_opacity(session_t *, const char *);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Add a pattern to a condition linked list.
|
|
|
|
*/
|
|
|
|
bool condlst_add(session_t *, c2_lptr_t **, const char *);
|
|
|
|
|
|
|
|
#ifdef CONFIG_LIBCONFIG
|
|
|
|
FILE *
|
|
|
|
open_config_file(char *cpath, char **path);
|
|
|
|
|
|
|
|
void
|
|
|
|
parse_cfg_condlst(session_t *ps, const config_t *pcfg, c2_lptr_t **pcondlst,
|
|
|
|
const char *name);
|
|
|
|
|
|
|
|
void
|
|
|
|
parse_config(session_t *ps, struct options_tmp *pcfgtmp);
|
2018-08-22 22:12:29 +08:00
|
|
|
#else
|
|
|
|
static inline void parse_config(session_t *a, struct options_tmp *b) {
|
|
|
|
(void)a;
|
|
|
|
(void)b;
|
|
|
|
}
|
2018-08-22 19:58:49 +08:00
|
|
|
#endif
|