This file is indexed.

/usr/include/openscap/oval_version.h is in libopenscap-dev 1.0.9-1+b2.

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
#ifndef OVAL_VERSION_H
#define OVAL_VERSION_H

#include <stdint.h>
#include <stddef.h>

typedef uint32_t oval_version_t;

#define OVAL_VERSION_INVALID 0

/**
 * Convert the string representation of the version to the
 * internal representation
 * Returns
 * OVAL_VERSION_INVALID ... if the string representation
 *                          is not a valid OVAL version
 */
oval_version_t oval_version_from_cstr(const char *version_str);

#define OVAL_VERSION(v) oval_version_from_cstr(#v)

/**
 * Convert the internal representation of the version to the
 * string representation
 * Returns
 *  0 ... on success
 *  1 ... no major component
 * -1 ... insufficient buffer space
 */
int oval_version_to_cstr(oval_version_t version, char *buffer, size_t buflen);

/**
 * Get the major component of the version
 */
uint8_t oval_version_major(oval_version_t version);

/**
 * Get the minor component of the version
 */
uint8_t oval_version_minor(oval_version_t version);

/**
 * Get the patch component of the version
 */
uint8_t oval_version_patch(oval_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_version_cmp(oval_version_t v1, oval_version_t v2);

#endif /* OVAL_VERSION_H */