Removing old svn keywords.
[monky] / src / nvidia.h
1 /* Conky, a system monitor, based on torsmo
2  *
3  * Any original torsmo code is licensed under the BSD license
4  *
5  * All code written since the fork of torsmo is licensed under the GPL
6  *
7  * Please see COPYING for details
8  *
9  * Copyright (c) 2008 Markus Meissner
10  * Copyright (c) 2005-2008 Brenden Matthews, Philip Kovacs, et. al.
11  *      (see AUTHORS)
12  * All rights reserved.
13  *
14  * This program is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation, either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU General Public License for more details.
23  * You should have received a copy of the GNU General Public License
24  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
25  *
26  */
27
28
29 #ifndef NVIDIA_CONKY_H
30 #define NVIDIA_CONKY_H
31
32 #include <X11/Xlib.h>
33 #include <NVCtrl/NVCtrlLib.h>
34
35 typedef enum _QUERY_ID {
36         NV_TEMP = NV_CTRL_GPU_CORE_TEMPERATURE,
37         NV_TEMP_THRESHOLD = NV_CTRL_GPU_CORE_THRESHOLD,
38         NV_GPU_FREQ = NV_CTRL_GPU_CURRENT_CLOCK_FREQS,
39         NV_MEM_FREQ = NV_CTRL_GPU_CURRENT_CLOCK_FREQS,
40         NV_IMAGE_QUALITY = NV_CTRL_IMAGE_SETTINGS
41 } QUERY_ID;
42
43 struct nvidia_s {
44         int interval;
45         int print_as_float;
46         QUERY_ID type;
47 };
48
49 int get_nvidia_value(QUERY_ID qid, Display *dpy);
50 int set_nvidia_type(struct nvidia_s *, const char *);
51
52 #endif