diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2008-02-12 21:05:03 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2008-02-12 21:05:03 -0800 |
commit | ff6454119839f5d439c1ca8eeefb5a9ed55fa579 (patch) | |
tree | f252b339ca7a436594b025c9a73092218809533f /src/config-file.h |
1.0-61061.0-6106
Diffstat (limited to 'src/config-file.h')
-rw-r--r-- | src/config-file.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/config-file.h b/src/config-file.h new file mode 100644 index 0000000..5227ba1 --- /dev/null +++ b/src/config-file.h @@ -0,0 +1,54 @@ +/* + * 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 of Version 2 of the GNU General Public + * License 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 Version 2 + * of 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, write to the: + * + * Free Software Foundation, Inc. + * 59 Temple Place - Suite 330 + * Boston, MA 02111-1307, USA + * + */ + +#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) + +typedef struct { + unsigned int booleans; +} ConfigProperties; + + +int nv_read_config_file(const char *, const char *, + ParsedAttribute *, ConfigProperties *); + +int nv_write_config_file(const char *, CtrlHandles *, + ParsedAttribute *, ConfigProperties *); + +#endif /* __CONFIG_FILE_H__ */ |