File: config-file.h

package info (click to toggle)
nvidia-settings 418.74-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,560 kB
  • sloc: ansic: 86,912; makefile: 418
file content (65 lines) | stat: -rw-r--r-- 2,256 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
 * and Linux systems.
 *
 * Copyright (C) 2004 NVIDIA Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses>.
 */

#ifndef __CONFIG_FILE_H__
#define __CONFIG_FILE_H__

#include "query-assign.h"


/*
 * The ConfigProperties structure contains additional configuration
 * data to be written to the rc file; these are configuration
 * properties of the nvidia-settings utilities itself, rather than
 * properties of the X screen(s) that nvidia-settings is configuring.
 */

#define CONFIG_PROPERTIES_TOOLTIPS                            (1<<0)
#define CONFIG_PROPERTIES_DISPLAY_STATUS_BAR                  (1<<1)
#define CONFIG_PROPERTIES_SLIDER_TEXT_ENTRIES                 (1<<2)
#define CONFIG_PROPERTIES_INCLUDE_DISPLAY_NAME_IN_CONFIG_FILE (1<<3)
#define CONFIG_PROPERTIES_SHOW_QUIT_DIALOG                    (1<<4)
#define CONFIG_PROPERTIES_UPDATE_RULES_ON_PROFILE_NAME_CHANGE (1<<5)

typedef struct _TimerConfigProperty {
    char *description;
    unsigned int user_enabled;
    unsigned int interval;
    struct _TimerConfigProperty *next;
} TimerConfigProperty;

typedef struct {
    unsigned int booleans;
    char *locale;
    TimerConfigProperty *timers;
} ConfigProperties;


void set_dynamic_verbosity(int dynamic);

void init_config_properties(ConfigProperties *conf);

int nv_read_config_file(const Options *, const char *, const char *,
                        ParsedAttribute *, ConfigProperties *,
                        CtrlSystemList *);

int nv_write_config_file(const char *, const CtrlSystem *,
                         const ParsedAttribute *, const ConfigProperties *);

#endif /* __CONFIG_FILE_H__ */