Debian Codegraph @

src/options.h

raw symbols SCIP
1 // SPDX-License-Identifier: MPL-2.0
2 // Copyright (c) Yuxuan Shui <[email protected]>
3 #pragma once
4
5 /// Parse command line options
6
7 #include <stdbool.h>
8 #include <xcb/render.h> // for xcb_render_fixed_t
9
10 #include <picom/types.h>
11
12 #include "compiler.h"
13 #include "config.h"
14
15 typedef struct session session_t;
16
17 /// Get config options that are needed to parse the rest of the options
18 /// Return true if we should quit
19 bool get_early_config(int argc, char *const *argv, char **config_file, bool *all_xerrors,
20 bool *fork, int *exit_code);
21
22 /**
23 * Process arguments and configuration files.
24 *
25 * Parameters:
26 * shadow_enable = Carry overs from parse_config
27 * fading_enable
28 * conv_kern_hasneg
29 * winopt_mask
30 * Returns:
31 * Whether configuration are processed successfully.
32 */
33 bool must_use get_cfg(options_t *opt, int argc, char *const *argv);
34 void options_postprocess_c2_lists(struct c2_state *state, struct x_connection *c,
35 struct options *option);
36 void options_destroy(struct options *options);
37
38 // vim: set noet sw=8 ts=8: