rofi  1.7.0
xrmoptions.h
Go to the documentation of this file.
1 /*
2  * rofi
3  *
4  * MIT/X11 License
5  * Copyright © 2013-2021 Qball Cow <qball@gmpclient.org>
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining
8  * a copy of this software and associated documentation files (the
9  * "Software"), to deal in the Software without restriction, including
10  * without limitation the rights to use, copy, modify, merge, publish,
11  * distribute, sublicense, and/or sell copies of the Software, and to
12  * permit persons to whom the Software is furnished to do so, subject to
13  * the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be
16  * included in all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25  *
26  */
27 
28 #ifndef ROFI_XRMOPTIONS_H
29 #define ROFI_XRMOPTIONS_H
30 #include "theme.h"
31 #include "xcb.h"
32 // Big thanks to Sean Pringle for this code.
33 
72 typedef enum {
82  xrm_Char = 4
84 
89 void config_parse_cmd_options(void);
90 
96 void config_xresource_free(void);
97 
106 void config_parser_add_option(XrmOptionType type, const char *key, void **value,
107  const char *comment);
108 
113 void print_options(void);
114 
124 void print_help_msg(const char *option, const char *type, const char *text,
125  const char *def, int isatty);
126 
134 char **config_parser_return_display_help(unsigned int *length);
135 
146 gboolean config_parse_set_property(const Property *p, char **error);
147 
154 void config_parse_dump_config_rasi_format(FILE *out, gboolean changes);
156 #endif
void config_parse_cmd_options(void)
Definition: xrmoptions.c:510
void print_options(void)
Definition: xrmoptions.c:861
void config_parser_add_option(XrmOptionType type, const char *key, void **value, const char *comment)
Definition: xrmoptions.c:424
XrmOptionType
Definition: xrmoptions.h:72
void print_help_msg(const char *option, const char *type, const char *text, const char *def, int isatty)
Definition: xrmoptions.c:878
gboolean config_parse_set_property(const Property *p, char **error)
Set config option.
Definition: xrmoptions.c:645
void config_parse_dump_config_rasi_format(FILE *out, gboolean changes)
Dump configuration in rasi format.
Definition: xrmoptions.c:737
char ** config_parser_return_display_help(unsigned int *length)
Definition: xrmoptions.c:935
@ xrm_SNumber
Definition: xrmoptions.h:78
@ xrm_Boolean
Definition: xrmoptions.h:80
@ xrm_Number
Definition: xrmoptions.h:76
@ xrm_Char
Definition: xrmoptions.h:82
@ xrm_String
Definition: xrmoptions.h:74
void config_xresource_free(void)
Definition: xrmoptions.c:675