~ubuntu-branches/ubuntu/precise/nvidia-settings/precise-proposed

« back to all changes in this revision

Viewing changes to nvidia-settings-1.0/src/config-file.h

  • Committer: Bazaar Package Importer
  • Author(s): Randall Donald
  • Date: 2004-07-03 19:09:17 UTC
  • Revision ID: james.westby@ubuntu.com-20040703190917-rqkze2s58ux5pamy
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * nvidia-settings: A tool for configuring the NVIDIA X driver on Unix
 
3
 * and Linux systems.
 
4
 *
 
5
 * Copyright (C) 2004 NVIDIA Corporation.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of Version 2 of the GNU General Public
 
9
 * License as published by the Free Software Foundation.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See Version 2
 
14
 * of the GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the:
 
18
 *
 
19
 *           Free Software Foundation, Inc.
 
20
 *           59 Temple Place - Suite 330
 
21
 *           Boston, MA 02111-1307, USA
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef __CONFIG_FILE_H__
 
26
#define __CONFIG_FILE_H__
 
27
 
 
28
#include "query-assign.h"
 
29
 
 
30
 
 
31
/*
 
32
 * The ConfigProperties structure contains additional configuration
 
33
 * data to be written to the rc file; these are configuration
 
34
 * properties of the nvidia-settings utilities itself, rather than
 
35
 * properties of the X screen(s) that nvidia-settings is configuring.
 
36
 */
 
37
 
 
38
#define CONFIG_PROPERTIES_TOOLTIPS                            (1<<0)
 
39
#define CONFIG_PROPERTIES_DISPLAY_STATUS_BAR                  (1<<1)
 
40
#define CONFIG_PROPERTIES_SLIDER_TEXT_ENTRIES                 (1<<2)
 
41
#define CONFIG_PROPERTIES_INCLUDE_DISPLAY_NAME_IN_CONFIG_FILE (1<<3)
 
42
 
 
43
typedef struct {
 
44
    unsigned int booleans;
 
45
} ConfigProperties;
 
46
 
 
47
 
 
48
int nv_read_config_file(const char *, const char *,
 
49
                        ParsedAttribute *, ConfigProperties *);
 
50
 
 
51
int nv_write_config_file(const char *, CtrlHandles *,
 
52
                         ParsedAttribute *, ConfigProperties *);
 
53
 
 
54
#endif /* __CONFIG_FILE_H__ */