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

« back to all changes in this revision

Viewing changes to nvidia-settings-1.0/src/command-line.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 __COMMAND_LINE_H__
 
26
#define __COMMAND_LINE_H__
 
27
 
 
28
#include <NvCtrlAttributes.h>
 
29
 
 
30
#define DEFAULT_RC_FILE "~/.nvidia-settings-rc"
 
31
 
 
32
/*
 
33
 * Options structure -- stores the parameters specified on the
 
34
 * commandline.
 
35
 */
 
36
 
 
37
typedef struct {
 
38
    
 
39
    char *ctrl_display;  /*
 
40
                          * The name of the display to control
 
41
                          * (doesn't have to be the same as the
 
42
                          * display on which the gui is shown
 
43
                          */
 
44
    
 
45
    char *config;        /*
 
46
                          * The name of the configuration file (to be
 
47
                          * read from, and to be writen to); defaults
 
48
                          * to the value of the constant
 
49
                          * DEFAULT_RC_FILE.
 
50
                          */
 
51
 
 
52
    char **assignments;  /*
 
53
                          * Dyanamically allocated array of assignment
 
54
                          * strings specified on the commandline.
 
55
                          */
 
56
    
 
57
    int num_assignments; /*
 
58
                          * Number of assignment strings in the
 
59
                          * assignment array.
 
60
                          */
 
61
    
 
62
    char **queries;      /*
 
63
                          * Dyanamically allocated array of query
 
64
                          * strings specified on the commandline.
 
65
                          */
 
66
    
 
67
    int num_queries;     /*
 
68
                          * Number of query strings in the query
 
69
                          * array.
 
70
                          */
 
71
    
 
72
    int load;            /*
 
73
                          * If true, just read the configuration file,
 
74
                          * send the attributes to the X server, and
 
75
                          * exit.
 
76
                          */
 
77
} Options;
 
78
 
 
79
 
 
80
Options *parse_command_line(int argc, char *argv[], char *dpy);
 
81
 
 
82
#endif /* __COMMAND_LINE_H__ */