This file is indexed.

/usr/include/openscap/oval_schema_version.h is in libopenscap-dev 1.2.8-1.

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
/*
 * Copyright 2015 Red Hat Inc., Durham, North Carolina.
 * All Rights Reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Authors:
 *      "Jan Černý" <jcerny@redhat.com>
 */

#ifndef OVAL_SCHEMA_VERSION_H
#define OVAL_SCHEMA_VERSION_H

enum oval_schema_version_components {
	OVAL_SCHEMA_VERSION_CORE_MAJOR = 0,
	OVAL_SCHEMA_VERSION_CORE_MINOR,
	OVAL_SCHEMA_VERSION_CORE_UPDATE,
	OVAL_SCHEMA_VERSION_PLATFORM_MAJOR,
	OVAL_SCHEMA_VERSION_PLATFORM_MINOR,
	OVAL_SCHEMA_VERSION_PLATFORM_UPDATE,
	OVAL_SCHEMA_VERSION_COMPONENTS_COUNT
};

#define OVAL_SCHEMA_VERSION_INVALID oval_schema_version_from_cstr(NULL)
#define OVAL_SCHEMA_VERSION(v) oval_schema_version_from_cstr(#v)

typedef struct {
	int component[OVAL_SCHEMA_VERSION_COMPONENTS_COUNT];
} oval_schema_version_t;

/**
 * Parses an OVAL schema version
 * @param ver_str OVAL version as string
 * @return internal representation of OVAL schema version
 */
oval_schema_version_t oval_schema_version_from_cstr(const char *ver_str);

/**
 * Converts OVAL schema version from an internal representation to a string.
 * @param version OVAL schema version
 * @return string
 */
const char *oval_schema_version_to_cstr(oval_schema_version_t version);

/**
 * Compare two versions in the internal representation
 * Returns
 *   0 ... if the versions are the same
 *  <0 ... if 'v1' is older than 'v2'
 *  >0 ... if 'v1' is newer than 'v2'
 */
int oval_schema_version_cmp(oval_schema_version_t v1, oval_schema_version_t v2);

#endif