This file is indexed.

/usr/include/ddccontrol/monitor_db.h is in libddccontrol-dev 0.4.2-11ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
    ddc/ci interface functions header
    Copyright(c) 2004 Nicolas Boichat (nicolas@boichat.ch)
    Copyright(c) 2004 Oleg I. Vdovikin (oleg@cs.msu.su)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    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, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef MONITOR_DB_H
#define MONITOR_DB_H

#include "ddcci.h"

#include <libxml/xmlstring.h>

/* Current database version */
#define DBVERSION 3

enum control_type {
value = 0,
command = 1,
list = 2
};

enum refresh_type {
none = 0,
all = 1
};

enum init_type {
unknown = 0,
standard = 1,
samsung = 2
};

struct value_db {
	xmlChar* id;
	xmlChar* name;
	unsigned char value;
	
	struct value_db* next;
};

struct control_db {
	xmlChar* id;
	xmlChar* name;
	unsigned char address;
	int delay; /* -1 indicate default value */
	enum control_type type;
	enum refresh_type refresh;
	
	struct control_db* next;
	struct value_db* value_list;
};

struct subgroup_db {
	xmlChar* name;
	xmlChar* pattern;
	
	struct subgroup_db* next;
	struct control_db* control_list;
};

struct group_db {
	xmlChar* name;
	
	struct group_db* next;
	struct subgroup_db* subgroup_list;
};

struct monitor_db {
	xmlChar* name;
	enum init_type init;
	
	struct group_db* group_list;
};

struct monitor_db* ddcci_create_db(const char* pnpname, struct caps* caps, int faulttolerance);
void ddcci_free_db(struct monitor_db* mon_db);

int ddcci_init_db(char* usedatadir);
void ddcci_release_db();

#endif